Skip to content

Commit

Permalink
fixed lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
nasir-rabbani committed Aug 23, 2021
1 parent 0a061bc commit 721b713
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/iac-providers/docker/v1/load-file.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const (
docker string = "docker"
resourceTypeDockerfile string = "dockerfile"
underScoreSeparator string = "_"
dockerInstruction_from string = "from"
dockerFromInstruction string = "from"
dockerScratchImage string = "scratch"

// IDConnectorString is string connector used in id creation
Expand Down Expand Up @@ -75,7 +75,7 @@ func (dc *DockerV1) LoadIacFile(absFilePath string, options map[string]interface
MinSeverity: minSeverity,
MaxSeverity: maxSeverity,
}
if data[i].Cmd == dockerInstruction_from && strings.Fields(data[i].Value)[0] != dockerScratchImage {
if data[i].Cmd == dockerFromInstruction && strings.Fields(data[i].Value)[0] != dockerScratchImage {
config.ContainerImages = append(config.ContainerImages, output.ContainerDetails{
Image: strings.Fields(data[i].Value)[0],
})
Expand Down

0 comments on commit 721b713

Please sign in to comment.