Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
defensively check for nil, although that should never happen
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Aug 19, 2014
1 parent 0b28b96 commit 07135b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func lookupNamedContainer(c *Context) error {
if _, ok := err.(*dockerClient.NoSuchContainer); ok {
return nil
}
if err != nil {
if err != nil || container == nil {
return err
}

Expand Down

0 comments on commit 07135b4

Please sign in to comment.