Skip to content

Commit

Permalink
code climate issues
Browse files Browse the repository at this point in the history
  • Loading branch information
YegorKozlov committed Dec 1, 2024
1 parent d7ff41d commit 858fda6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* ACS AEM Commons
* ACS AEM Commons Bundle
*
* Copyright (C) 2013 - 2024 Adobe
*
Expand Down Expand Up @@ -62,16 +62,16 @@ protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse r
}
Collection<RedirectRule> rules = RedirectFilter.getRules(request.getResource());
PrintWriter out = response.getWriter();
out.printf("# %s Redirects\n", statusCode == 0 ? "All" : "" + statusCode);
out.printf("# %s Redirects%n", statusCode == 0 ? "All" : "" + statusCode);
for (RedirectRule rule : rules) {
if(statusCode != 0 && rule.getStatusCode() != statusCode) {
continue;
}
String note = rule.getNote();
if(note != null && !note.isEmpty()) {
out.printf("# %s\n", note);
out.printf("# %s%n", note);
}
out.printf("%s %s\n", rule.getSource(), rule.getTarget());
out.printf("%s %s%n", rule.getSource(), rule.getTarget());
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* ACS AEM Commons
* ACS AEM Commons Bundle
*
* Copyright (C) 2013 - 2024 Adobe
*
Expand Down

0 comments on commit 858fda6

Please sign in to comment.