shithub: hell

Download patch

ref: 2fd88f28f840f56cd16c887a8e46060912d5057f
parent: f8ebbc8c488835dad65b9a2c6d7f009d81239c49
author: penny <penny@limitedideas.org>
date: Mon Aug 4 10:47:45 EDT 2025

gofmt pass

--- a/commands.go
+++ b/commands.go
@@ -34,4 +34,4 @@
 		}
 	}
 	return
-}
\ No newline at end of file
+}
--- a/main.go
+++ b/main.go
@@ -136,18 +136,18 @@
 			}
 		case "mark":
 			_, err := client.Bookmark(context.Background(), postItem.ID)
-				if err != nil {
-					printMastodonErr(err)
-				} else {
+			if err != nil {
+				printMastodonErr(err)
+			} else {
 				fmt.Printf(formatBookmark(postItem, arguments) + "\n")
-				}
+			}
 		case "unmark":
 			_, err := client.Unbookmark(context.Background(), postItem.ID)
-				if err != nil {
-					printMastodonErr(err)
-				} else {
+			if err != nil {
+				printMastodonErr(err)
+			} else {
 				fmt.Printf(formatUnbookmark(postItem, arguments) + "\n")
-				}
+			}
 		case "open":
 			url := fmt.Sprintf("%v/statuses/%v", client.Config.Server, postItem.ID)
 			cmd := exec.Command("open", url, "-a", "Eldritch Café")
--- a/mastodon.go
+++ b/mastodon.go
@@ -210,7 +210,7 @@
 			continue
 		}
 		postfix += "🖼️"
-		
+
 	}
 	plaintext = hyphenate(fmt.Sprintf("%v %v", poststring, postfix))
 	return
--