Skip to content

Commit 89a868e

Browse files
authored
Merge pull request #3611 from SentryMan/patch-1
[Avaje Inject Module] Fix property plugin
2 parents 5cb89e8 + fb0392e commit 89a868e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/jooby-avaje-inject/src/main/java/io/jooby/avaje/inject/JoobyPropertyPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public JoobyPropertyPlugin(Config config) {
2222
@Override
2323
public Optional<String> get(String property) {
2424
return config.hasPath(property)
25-
? Optional.empty()
26-
: Optional.ofNullable(config.getString(property));
25+
? Optional.of(config.getString(property))
26+
: Optional.empty();
2727
}
2828

2929
@Override

0 commit comments

Comments
 (0)