Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
KannarFr committed Feb 25, 2022
1 parent eff28bd commit 5eaf632
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void configure(String encodedAuthParamString) {
URI filePath = URI.create(encodedAuthParamString);
this.biscuitSupplier = () -> {
try {
return new String(Files.readAllBytes(Paths.get(filePath)), Charsets.UTF_8).trim();
return Files.readString(Paths.get(filePath), Charsets.UTF_8).trim();
} catch (IOException e) {
throw new RuntimeException("Failed to read biscuit from file", e);
}
Expand Down

0 comments on commit 5eaf632

Please sign in to comment.