Skip to content

Commit

Permalink
Ignore blank values
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Sep 30, 2019
1 parent 6830ac3 commit 1ecb87a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public static Optional<Registration> fromEnv(final String tenantId) {
}

final Version version = Environment.get("DEVICE_REGISTRY_VERSION")
.filter(s -> !s.isBlank())
.map(String::toUpperCase)
.map(Version::valueOf)
.orElse(Version.LEGACY);
Expand Down

0 comments on commit 1ecb87a

Please sign in to comment.