diff options
author | Jakob Unterwurzacher | 2018-02-18 12:55:20 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-02-18 12:55:20 +0100 |
commit | 14c063428dcded6a1060395bb45bf7bd5d185738 (patch) | |
tree | 60a18562c1a827dc33da9ba75fe5580a5c2bffe9 /main.go | |
parent | 5b5c7a0a5d73859f74d2151061593ba2f9f9cac7 (diff) |
main: doMount: use a deferred function for wipeKeys
Also drop the unused int return.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -267,10 +267,6 @@ func main() { tlog.Fatal.Printf("Usage: %s [OPTIONS] CIPHERDIR MOUNTPOINT [-o COMMA-SEPARATED-OPTIONS]", tlog.ProgramName) os.Exit(exitcodes.Usage) } - ret := doMount(&args) - if ret != 0 { - os.Exit(ret) - } - // Don't call os.Exit on success to give deferred functions a chance to - // run + doMount(&args) + // Don't call os.Exit to give deferred functions a chance to run } |