Skip to content

Commit 12f295d

Browse files
invert condition
1 parent 908ed4e commit 12f295d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ public boolean stop() {
694694
@Override
695695
@DB
696696
public String updateConfiguration(final long userId, final String name, final String category, String value, final String scope, final Long resourceId) {
697-
if (getConfigurationTypeWrapperClass(name) == Boolean.class) {
697+
if (Boolean.class == getConfigurationTypeWrapperClass(name)) {
698698
value = value.toLowerCase();
699699
}
700700

0 commit comments

Comments
 (0)