diff options
Diffstat (limited to 'commands/msgview/save.go')
-rw-r--r-- | commands/msgview/save.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/msgview/save.go b/commands/msgview/save.go index 713c6d11..26a6bf2e 100644 --- a/commands/msgview/save.go +++ b/commands/msgview/save.go @@ -151,10 +151,8 @@ func isDirExists(path string) bool { //pathExists returns true if path exists func pathExists(path string) bool { _, err := os.Stat(path) - if err != nil { - return false // we don't really care why it failed - } - return true + + return err == nil } //isAbsPath returns true if path given is anchored to / or . or ~ |