Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
cmd/swarm/swarm-snapshot: change comment wording
Browse files Browse the repository at this point in the history
  • Loading branch information
janos committed Jan 11, 2019
1 parent 4399833 commit 5d5bcd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/swarm/swarm-snapshot/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func createSnapshot(filename string, nodes int, services []string) (err error) {
func touchPath(filename string) (string, error) {
if path.IsAbs(filename) {
if _, err := os.Stat(filename); err == nil {
// path exists, we will override the file
// path exists, we will overwrite the file
return filename, nil
}
}
Expand All @@ -156,7 +156,7 @@ func touchPath(filename string) (string, error) {

_, err = os.Stat(path.Join(dir, filename))
if err == nil {
// path exists, we will override
// path exists, we will overwrite
return filename, nil
}

Expand Down

0 comments on commit 5d5bcd6

Please sign in to comment.