Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversun9 committed Jul 29, 2024
1 parent 143ac90 commit 8031e58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/cmd/fetcher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ func copyFile(
line = strings.Join(fields, " ")
}
}
} else if isDockerfile && strings.HasPrefix(line, dockerSyntaxPrefix) {
}
if isDockerfile && strings.HasPrefix(line, dockerSyntaxPrefix) {
line = dockerSyntaxPrefix + preferredDockerSyntax
}
if _, err := fmt.Fprintln(destFile, line); err != nil {
Expand Down

0 comments on commit 8031e58

Please sign in to comment.