Skip to content

Commit a2de897

Browse files
committed
chore: use primitive value for the defaultValue
Signed-off-by: Ruben Romero Montes <[email protected]>
1 parent 7f3836c commit a2de897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/redhat/exhort/utils/Environment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ public static final String get(String name) {
3131
return get(name, null);
3232
}
3333

34-
public static final boolean getBoolean(String key, Boolean defaultValue) {
34+
public static final boolean getBoolean(String key, boolean defaultValue) {
3535
var val = get(key);
3636
if (val != null) {
3737
return Boolean.parseBoolean(val.trim().toLowerCase());
3838
}
39-
return defaultValue != null ? defaultValue : false;
39+
return defaultValue;
4040
}
4141
}

0 commit comments

Comments
 (0)