aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-02-18 12:55:20 +0100
committerJakob Unterwurzacher2018-02-18 12:55:20 +0100
commit14c063428dcded6a1060395bb45bf7bd5d185738 (patch)
tree60a18562c1a827dc33da9ba75fe5580a5c2bffe9 /main.go
parent5b5c7a0a5d73859f74d2151061593ba2f9f9cac7 (diff)
main: doMount: use a deferred function for wipeKeys
Also drop the unused int return.
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 2 insertions, 6 deletions
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
}