mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
cmd/swarm/swarm-snapshot: change comment wording
This commit is contained in:
parent
a208208425
commit
a40801dead
1 changed files with 2 additions and 2 deletions
|
|
@ -143,7 +143,7 @@ func createSnapshot(filename string, nodes int, services []string) (err error) {
|
||||||
func touchPath(filename string) (string, error) {
|
func touchPath(filename string) (string, error) {
|
||||||
if path.IsAbs(filename) {
|
if path.IsAbs(filename) {
|
||||||
if _, err := os.Stat(filename); err == nil {
|
if _, err := os.Stat(filename); err == nil {
|
||||||
// path exists, we will override the file
|
// path exists, we will overwrite the file
|
||||||
return filename, nil
|
return filename, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -156,7 +156,7 @@ func touchPath(filename string) (string, error) {
|
||||||
|
|
||||||
_, err = os.Stat(path.Join(dir, filename))
|
_, err = os.Stat(path.Join(dir, filename))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
// path exists, we will override
|
// path exists, we will overwrite
|
||||||
return filename, nil
|
return filename, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue