Skip to content

Commit

Permalink
fix:revert scanner changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sr4850 committed May 16, 2024
1 parent e734b36 commit b5d01dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/java/scanner/AXEScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import activesupport.driver.Browser;
import com.deque.html.axecore.args.AxeRuleOptions;
import com.deque.html.axecore.args.AxeRunOptions;
import com.deque.html.axecore.args.AxeRunOptions;
import com.deque.html.axecore.results.Results;
import com.deque.html.axecore.results.Rule;
import com.deque.html.axecore.selenium.AxeBuilder;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/scanner/ReportGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ private static String readLinesAsInputStream(InputStream inputStream) throws IOE
private static String readLines(String filePath) {
StringBuilder contentBuilder = new StringBuilder();
try (Stream<String> stream = Files.lines(Paths.get(filePath), StandardCharsets.UTF_8)) {
final StringBuilder finalContentBuilder = contentBuilder;
stream.forEach(s -> finalContentBuilder.append(s).append("\n"));
stream.forEach(s -> contentBuilder.append(s).append("\n"));
} catch (IOException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit b5d01dc

Please sign in to comment.