misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-03-13 15:03:11 +01:00
commit 892eff56a6
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -24,6 +24,7 @@ func main() {
fmt.Println(err) fmt.Println(err)
os.Exit(1) os.Exit(1)
} }
defer sess.Close()
if core.HasColors == false { if core.HasColors == false {
if *sess.Options.NoColors == true { if *sess.Options.NoColors == true {
@ -104,9 +105,4 @@ func main() {
} }
} }
} }
sess.Close()
// Windows requires this otherwise the app never exits ...
os.Exit(0)
} }