Remove unnecessary wrapper function on os.Exit

This commit is contained in:
Albert Salim
2018-10-10 21:57:58 +08:00
parent 99bc300c8d
commit 4346c76f26
2 changed files with 4 additions and 8 deletions
-6
View File
@@ -48,12 +48,6 @@ func runHandlers() {
// Exit runs all the Logrus atexit handlers and then terminates the program using os.Exit(code)
func Exit(code int) {
runHandlers()
osExit(code)
}
type exitFunc func(int)
func osExit(code int) {
os.Exit(code)
}