Skip to content

Commit

Permalink
Remaining go vet fixes from goreportcard.com report.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgooch committed Feb 27, 2019
1 parent 12660e6 commit 7cc436c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions imagepublishers/amipublisher/copyBootstrapImage.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func copyBootstrapImage(streamName string, targets awsutil.TargetList,
result.awsService = awsService
result.region = region
result.logger = logger
resultsChannel <- &resultType{targetResult: &result, error: err}
resultsChannel <- &resultType{targetResult: result, error: err}
},
logger)
// Collect results.
Expand Down Expand Up @@ -114,7 +114,7 @@ func copyBootstrapImage(streamName string, targets awsutil.TargetList,

func probeTarget(awsService *ec2.EC2, streamName string,
imageSearchTags libtags.Tags, unpackerName string, logger log.Logger) (
targetResult, error) {
*targetResult, error) {
var result targetResult
instance, client, err := getWorkingUnpacker(awsService, unpackerName,
logger)
Expand All @@ -130,10 +130,10 @@ func probeTarget(awsService *ec2.EC2, streamName string,
image, err := findImage(awsService, imageSearchTags)
if err != nil {
logger.Println(err)
return result, err
return nil, err
}
result.image = image
return result, nil
return &result, nil
}

func (target *targetResult) bootstrap(streamName string,
Expand Down

0 comments on commit 7cc436c

Please sign in to comment.