From ba2077119577669525bc62b03e4c1daa8b88ae2f Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Wed, 26 May 2021 16:59:50 -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 8208421..fc0741e 100644 --- a/cmd/git-sync/main.go +++ b/cmd/git-sync/main.go @@ -240,8 +240,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) } }