From 14c063428dcded6a1060395bb45bf7bd5d185738 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 18 Feb 2018 12:55:20 +0100 Subject: main: doMount: use a deferred function for wipeKeys Also drop the unused int return. --- main.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index acaa205..797701a 100644 --- a/main.go +++ b/main.go @@ -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 } -- cgit v1.2.3