Skip to content

Commit

Permalink
replace 0700 -> os.ModePerm
Browse files Browse the repository at this point in the history
  • Loading branch information
beansgum committed Jan 19, 2020
1 parent fba6981 commit 18a7bbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion multiwallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func NewMultiWallet(rootDir, dbDriver, netType string) (*MultiWallet, error) {
}

rootDir = filepath.Join(rootDir, netType)
err = os.MkdirAll(rootDir, 0700)
err = os.MkdirAll(rootDir, os.ModePerm)
if err != nil {
return nil, errors.Errorf("failed to create rootDir: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion utils/netparams.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ func ChainParams(netType string) (*chaincfg.Params, error) {
case strings.ToLower(testnetParams.Name):
return testnetParams, nil
default:
return nil, errors.New("net type must be either mainnet or testnet3")
return nil, errors.New("invalid net type")
}
}

0 comments on commit 18a7bbc

Please sign in to comment.