diff --git a/cmd/justcaptchad/main.go b/cmd/justcaptchad/main.go index 91f3183..4757f12 100644 --- a/cmd/justcaptchad/main.go +++ b/cmd/justcaptchad/main.go @@ -28,11 +28,9 @@ func main() { return } - defer func() { - if !strings.ContainsRune(*listenAddress, ':') { - os.Remove(*listenAddress) - } - }() + if !strings.ContainsRune(*listenAddress, ':') { + defer os.Remove(*listenAddress) + } captcha.Init(*captchaExpire)