From 2aabbfeb7173d682fc28cc512afc13bab2ce0ee7 Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 27 Oct 2022 16:32:07 +0100 Subject: gofmt --- cmd/rescribe/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/rescribe/main.go') diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index 16ca024..c9118a8 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -435,9 +435,9 @@ func rmIfNotImage(f string) error { r.Close() if err == nil { b := strings.TrimSuffix(f, ".jpg") - err = os.Rename(f, b + ".png") + err = os.Rename(f, b+".png") if err != nil { - return fmt.Errorf("Error renaming %s to %s: %v", f, b + ".png", err) + return fmt.Errorf("Error renaming %s to %s: %v", f, b+".png", err) } return nil } -- cgit v1.2.1-24-ge1ad