Skip to content

Commit cf18ce0

Browse files
committed
fix
1 parent 8271101 commit cf18ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/internal/ConfigPropertiesUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static Optional<Boolean> getBoolean(String propertyName) {
5252
Optional<String> string = getString(propertyName);
5353
// lambdas must not be used here in early initialization phase on early JDK8 versions
5454
if (string.isPresent()) {
55-
return Optional.ofNullable(Boolean.parseBoolean(string.get()));
55+
return Optional.of(Boolean.parseBoolean(string.get()));
5656
}
5757
return Optional.empty();
5858
}

0 commit comments

Comments
 (0)