Skip to content

Commit d5d2e5c

Browse files
authored
Merge pull request #194 from stefanbirkner/dockerfile
Delete redundant code
2 parents 0e281f0 + dc7effb commit d5d2e5c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/main/java/org/jenkinsci/plugins/docker/workflow/Dockerfile.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,11 @@ private void parse() throws IOException, InterruptedException {
6565
String line;
6666
while ((line = r.readLine()) != null) {
6767
line = line.trim();
68-
if (line.startsWith("#")) {
69-
continue;
70-
}
7168
if (line.startsWith(ARG)) {
7269
String[] keyVal = parseDockerfileArg(line.substring(4));
7370
args.put(keyVal[0], keyVal[1]);
74-
continue;
75-
}
76-
77-
if (line.startsWith(FROM)) {
71+
} else if (line.startsWith(FROM)) {
7872
froms.add(line.substring(5));
79-
continue;
8073
}
8174
}
8275
}

0 commit comments

Comments
 (0)