From f96cdbca1706abb5be9585a5bb83d1933b14579c Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Wed, 26 May 2021 17:00:59 -0700 Subject: [PATCH] Small error string cleanup --- cmd/git-sync/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/git-sync/main.go b/cmd/git-sync/main.go index c9eccc0..d75076e 100644 --- a/cmd/git-sync/main.go +++ b/cmd/git-sync/main.go @@ -259,8 +259,8 @@ func (l *customLogger) writeContent(content []byte) { l.Logger.Error(err, "can't rename to error-file", "temp-file", tmpFile.Name(), "error-file", errorFile) return } - if err := os.Chmod(errorFile, 0644) ; err != nil { - l.Logger.Error(err, "can't change the mod of the error-file", "error-file", errorFile) + if err := os.Chmod(errorFile, 0644); err != nil { + l.Logger.Error(err, "can't change permissions on the error-file", "error-file", errorFile) } }