Skip to content

Commit

Permalink
chore: using constant reference for encryption setting
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed May 23, 2021
1 parent 3803306 commit 985345c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/cliConfiguration.go
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ func (c *Config) IsCIMode() bool {

// IsEncryptionEnabled indicates if session encryption is enabled or not
func (c *Config) IsEncryptionEnabled() bool {
return c.viper.GetBool("settings.encryption.enabled")
return c.viper.GetBool(SettingsEncryptionEnabled)
}

// GetString returns a string from the configuration
Expand Down

0 comments on commit 985345c

Please sign in to comment.