Skip to content

Commit 2eb4408

Browse files
committed
oci: simplify WithImageConfig
Signed-off-by: Akihiro Suda <[email protected]>
1 parent fc51e56 commit 2eb4408

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

oci/spec_opts_unix.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ func WithImageConfig(image Image) SpecOpts {
112112
// if we cannot parse as a uint they try to see if it is a username
113113
return WithUsername(config.User)(ctx, client, c, s)
114114
}
115-
if err := WithUserID(uint32(v))(ctx, client, c, s); err != nil {
116-
return err
117-
}
115+
return WithUserID(uint32(v))(ctx, client, c, s)
118116
case 2:
119117
// TODO: support username and groupname
120118
v, err := strconv.Atoi(parts[0])

0 commit comments

Comments
 (0)