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

Commit 07135b4

Browse files
defensively check for nil, although that should never happen
1 parent 0b28b96 commit 07135b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func lookupNamedContainer(c *Context) error {
155155
if _, ok := err.(*dockerClient.NoSuchContainer); ok {
156156
return nil
157157
}
158-
if err != nil {
158+
if err != nil || container == nil {
159159
return err
160160
}
161161

0 commit comments

Comments
 (0)