Skip to content

Commit 9e61d19

Browse files
committed
fix typo on variable name
1 parent dbaad15 commit 9e61d19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jooby/src/main/java/io/jooby/internal/converter/BuiltinConverter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ public boolean supports(@NonNull Class<?> type) {
102102
try {
103103
return java.time.Duration.parse(value.value());
104104
} catch (DateTimeParseException x) {
105-
var nanos = MILLISECONDS.convert(parseDuration(value.value()), NANOSECONDS);
106-
return java.time.Duration.ofMillis(nanos);
105+
var millis = MILLISECONDS.convert(parseDuration(value.value()), NANOSECONDS);
106+
return java.time.Duration.ofMillis(millis);
107107
}
108108
}
109109

0 commit comments

Comments
 (0)