Skip to content

Commit

Permalink
More go vet fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgooch committed Feb 27, 2019
1 parent ad06fae commit 12660e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions imagepublishers/amipublisher/copyBootstrapImage.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ func copyBootstrapImage(streamName string, targets awsutil.TargetList,
instanceType string, sshKeyName string, logger log.Logger) error {
imageSearchTags := libtags.Tags{"Name": streamName}
type resultType struct {
targetResult
error error
targetResult *targetResult
error error
}
resultsChannel := make(chan *resultType, 1)
numTargets, err := awsutil.ForEachTarget(targets, skipList,
Expand All @@ -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 All @@ -62,7 +62,7 @@ func copyBootstrapImage(streamName string, targets awsutil.TargetList,
err = result.error
}
} else {
target := &result.targetResult
target := result.targetResult
targetResults = append(targetResults, target)
if target.client != nil {
if stream, ok := target.status.ImageStreams[streamName]; ok {
Expand Down
2 changes: 1 addition & 1 deletion sub/scanner/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (fsh *FileSystemHistory) ScanCount() uint64 {
return fsh.scanCount
}

func (fsh FileSystemHistory) String() string {
func (fsh *FileSystemHistory) String() string {
fsh.rwMutex.RLock()
defer fsh.rwMutex.RUnlock()
return fmt.Sprintf("GenerationCount=%d\n", fsh.generationCount)
Expand Down

0 comments on commit 12660e6

Please sign in to comment.