[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