Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
541f299f
Commit
541f299f
authored
May 03, 2018
by
GagziW
Committed by
Péter Szilágyi
May 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounts: changed if-else blocks to conform with golint (#16654)
parent
7c029332
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
keystore_passphrase.go
accounts/keystore/keystore_passphrase.go
+1
-2
keystore_plain.go
accounts/keystore/keystore_plain.go
+1
-2
No files found.
accounts/keystore/keystore_passphrase.go
View file @
541f299f
...
...
@@ -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
...
...
accounts/keystore/keystore_plain.go
View file @
541f299f
...
...
@@ -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
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment