Skip to content

Commit

Permalink
accounts: changed if-else blocks to conform with golint (ethereum#16654)
Browse files Browse the repository at this point in the history
  • Loading branch information
GagziW authored and gzliudan committed Dec 30, 2024
1 parent 60993ce commit 63e810b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions accounts/keystore/keystore_passphrase.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,8 @@ func (ks keyStorePassphrase) StoreKey(filename string, key *Key, auth string) er
func (ks keyStorePassphrase) JoinPath(filename string) string {
if filepath.IsAbs(filename) {
return filename
} else {
return filepath.Join(ks.keysDirPath, filename)
}
return filepath.Join(ks.keysDirPath, filename)
}

// EncryptKey encrypts a key using the specified scrypt parameters into a json
Expand Down
3 changes: 1 addition & 2 deletions accounts/keystore/keystore_plain.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ func (ks keyStorePlain) StoreKey(filename string, key *Key, auth string) error {
func (ks keyStorePlain) JoinPath(filename string) string {
if filepath.IsAbs(filename) {
return filename
} else {
return filepath.Join(ks.keysDirPath, filename)
}
return filepath.Join(ks.keysDirPath, filename)
}

0 comments on commit 63e810b

Please sign in to comment.