Skip to content

Commit 588b369

Browse files
committed
style(config): remove extra validation
1 parent 3833a4b commit 588b369

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

util/config_sysproc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func (conf *ConfigType) getProcessCredential() (uid uint32, gid uint32) {
2222
return
2323
}
2424

25-
if u > 0 && u <= math.MaxUint32 {
25+
if u > 0 {
2626
uid = uint32(u)
2727
}
2828

@@ -31,7 +31,7 @@ func (conf *ConfigType) getProcessCredential() (uid uint32, gid uint32) {
3131
return
3232
}
3333

34-
if g > 0 && g <= math.MaxUint32 {
34+
if g > 0 {
3535
gid = uint32(g)
3636
}
3737
}

0 commit comments

Comments
 (0)