-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Please don't even try to process
nil
values
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -288,10 +288,14 @@ func (api *API) PullTags(cn *collection.Collection) error { | |
log.Infof("PULLING %s", ref) | ||
|
||
resp, err := api.dockerClient.Pull(ref) | ||
if err != nil { | ||
This comment has been minimized.
Sorry, something went wrong. |
||
done <- err | ||
return | ||
} | ||
|
||
logDebugData(resp) | ||
This comment has been minimized.
Sorry, something went wrong.
ivanilves
Author
Owner
|
||
|
||
done <- err | ||
done <- nil | ||
} | ||
}(repo, tags, done) | ||
} | ||
|
if error is not
nil
, the response will benil
for sure, no sense to proceed if this happens 😃