Skip to content

Commit

Permalink
replace string with constant in fsrepo privkey check
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
  • Loading branch information
whyrusleeping committed Sep 4, 2016
1 parent 91dd044 commit 667f8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repo/fsrepo/fsrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ func (r *FSRepo) SetConfigKey(key string, value interface{}) error {
}

// replace private key, in case it was overwritten.
if err := common.MapSetKV(mapconf, "Identity.PrivKey", pkval); err != nil {
if err := common.MapSetKV(mapconf, config.PrivKeySelector, pkval); err != nil {
return err
}

Expand Down

0 comments on commit 667f8a6

Please sign in to comment.