From 0ec2638bdb84b083c832246e41c924a92e95e07b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Rockst=C3=A4dt?= Date: Sun, 12 Feb 2023 17:50:20 +0100 Subject: [PATCH] Reformat file --- util/hook.go | 1 + 1 file changed, 1 insertion(+) diff --git a/util/hook.go b/util/hook.go index a5c3e8f..9e4a914 100644 --- a/util/hook.go +++ b/util/hook.go @@ -54,6 +54,7 @@ func writeContent(writer io.Writer, exePath string) { _, err := fmt.Fprint(writer, "#!/bin/sh\n\n") _, err = fmt.Fprintf(writer, `"%s/commit-message-check" validate $1`, exePath) _, err = fmt.Fprint(writer, "\n") + if err != nil { log.Printf("[ERROR]\t Could not write commit-msg script: %s", err) }