cmd/swarm/swarm-snapshot: change comment wording

This commit is contained in:
Janos Guljas 2019-01-11 14:01:35 +01:00 committed by Elad Nachmias
parent a208208425
commit a40801dead

View file

@ -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
} }