Skip to content

Commit

Permalink
fix: replaced String.length() == 0 with String.isEmpty() in DockerFil…
Browse files Browse the repository at this point in the history
…eBuilderTest.java

Signed-off-by: Rajvardhan Singh <vardhanrajsingh04@gmail.com>
  • Loading branch information
invictus04 authored Jul 17, 2024
1 parent 8231786 commit c6cef34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ private static Map<String, String> dockerfileToMap(String dockerFile) {
final Scanner scanner = new Scanner(dockerFile);
while (scanner.hasNextLine()) {
String line = scanner.nextLine();
if (line.trim().length() == 0) {
if (line.trim().isEmpty()) {
continue;
}
String[] commandAndArguments = line.trim().split("\\s+", 2);
Expand Down

0 comments on commit c6cef34

Please sign in to comment.