Skip to content

Commit

Permalink
Fix code to pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerwowen committed Feb 1, 2024
1 parent 569609b commit 6977502
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ private String getKeyInternal() {
LOG.warn("Using default key since knoxManager is null");
return defaultKeyContent;
}
return knoxManager.getKey().trim();
String key = knoxManager.getKey();
if (key != null) {
return key.trim();
}
return key;
}
}

0 comments on commit 6977502

Please sign in to comment.