summaryrefslogtreecommitdiff
path: root/cmd/rescribe/main.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2022-10-27 16:32:07 +0100
committerNick White <git@njw.name>2022-10-27 16:32:07 +0100
commit2aabbfeb7173d682fc28cc512afc13bab2ce0ee7 (patch)
tree151e3b93c971bd391b59906e89a97d8104493420 /cmd/rescribe/main.go
parent811601e4b446b1c598af965b74155f7f76ffb7e9 (diff)
gofmt
Diffstat (limited to 'cmd/rescribe/main.go')
-rw-r--r--cmd/rescribe/main.go4
1 files changed, 2 insertions, 2 deletions
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
}