Skip to content

Commit

Permalink
example: lowercase errors
Browse files Browse the repository at this point in the history
Pacify golint.
  • Loading branch information
cgwalters committed Mar 26, 2021
1 parent 368be64 commit 7b7044c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ func downloadISO(st stream.Stream) error {
func printAMI(st stream.Stream) error {
arch, ok := st.Architectures[targetArch]
if !ok {
return fmt.Errorf("No %s architecture in stream", targetArch)
return fmt.Errorf("no %s architecture in stream", targetArch)
}
awsimages := arch.Images.Aws
if awsimages == nil {
return fmt.Errorf("No %s AWS images in stream", targetArch)
return fmt.Errorf("no %s AWS images in stream", targetArch)
}
var regionVal stream.AwsRegionImage
if regionVal, ok = awsimages.Regions[region]; !ok {
return fmt.Errorf("No %s AWS images in region %s", targetArch, region)
return fmt.Errorf("no %s AWS images in region %s", targetArch, region)
}
fmt.Printf("%s\n", regionVal.Image)

Expand Down

0 comments on commit 7b7044c

Please sign in to comment.