mirror of https://github.com/ledisdb/ledisdb.git
Remove unnecessary type conversion
This commit is contained in:
parent
316ba29713
commit
e0ee542c77
|
@ -99,7 +99,7 @@ func NewApp(cfg *config.Config) (*App, error) {
|
|||
if perm, err = strconv.ParseInt(cfg.AddrUnixSocketPerm, 8, 32); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err = os.Chmod(cfg.Addr, os.FileMode(uint32(perm))); err != nil {
|
||||
if err = os.Chmod(cfg.Addr, os.FileMode(perm)); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue