~maestn/public-inbox

mwah: lint: condence if-err block v1 APPLIED

Sol Fisher Romanoff: 1
 lint: condence if-err block

 1 files changed, 1 insertions(+), 3 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~maestn/public-inbox/patches/39894/mbox | git am -3
Learn more about email & git

[PATCH mwah] lint: condence if-err block Export this patch

---
great job on your go project :3 i'm proud of u

 main.go | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/main.go b/main.go
index f9cc017..f612c5d 100644
--- a/main.go
+++ b/main.go
@@ -54,10 +54,8 @@ func main() {
	})
	http.HandleFunc("/read", fileSend)
	http.HandleFunc("/edit", editFile)
	err := http.ListenAndServe("localhost:8080", nil)
	if err != nil {
	if err := http.ListenAndServe("localhost:8080", nil); err != nil {
		log.Fatal("Error Starting the HTTP Server : ", err)
		return
	}

}
-- 
2.39.2
hi sol :)

thanks so much for the contribution, much appreciated

~maestn