Remove unnecessary type conversion

This commit is contained in:
Nikolay Turpitko 2015-11-23 22:41:20 +05:00
parent 316ba29713
commit e0ee542c77
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}