Skip to content

Commit

Permalink
fix: style
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong committed Jul 14, 2024
1 parent f24fa02 commit aa1ddca
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ private Collection<DefCveItem> _next(int retryCount) {
if (msg != null) {
if (msg.contains("Invalid apiKey")) {
if (this.apiKey.length() > 30) {
String masked = String.format("Invalid API Key: %s-*****-%s", this.apiKey.substring(0, 5),
String masked = String.format("Invalid API Key: %s-*****-%s",
this.apiKey.substring(0, 5),
this.apiKey.substring(this.apiKey.length() - 5, this.apiKey.length()));
throw new NvdApiException(masked);
}
Expand Down

0 comments on commit aa1ddca

Please sign in to comment.