From 8953b22526dea1af6458f3de17ec96ecf3c417e0 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 23 Nov 2015 01:38:41 -0500 Subject: gometalinter, ish --- sd_daemon/lsb/exit-status.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sd_daemon/lsb/exit-status.go b/sd_daemon/lsb/exit-status.go index 88ff104..14e2128 100644 --- a/sd_daemon/lsb/exit-status.go +++ b/sd_daemon/lsb/exit-status.go @@ -17,8 +17,9 @@ package lsb import ( - "lukeshu.com/git/go/libsystemd.git/sd_daemon/logger" "os" + + "lukeshu.com/git/go/libsystemd.git/sd_daemon/logger" ) // systemd daemon(7) recommends using the exit codes defined in the @@ -81,8 +82,9 @@ const ( EXIT_SMACK_PROCESS_LABEL uint8 = 237 ) -// This is a utility function to defer at the beginning of a goroutine -// in order to have the correct exit code in the case of a panic. +// Recover is a utility function to defer at the beginning of a +// goroutine in order to have the correct exit code in the case of a +// panic. func Recover() { if r := recover(); r != nil { logger.Err("panic: %v", r) -- cgit v1.1-4-g5e80