From 76023d963932ef6e5afdd4e9bc59ed828082f2c5 Mon Sep 17 00:00:00 2001 From: Paolo Fabbri Date: Sat, 4 Jul 2026 23:21:34 +0100 Subject: [PATCH] refactor: use if-scoped err for the openBrowser call --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 318b874..f158791 100644 --- a/main.go +++ b/main.go @@ -46,8 +46,8 @@ func main() { newPRURL := fmt.Sprintf("%s/compare/%s", githubURL, url.PathEscape(currentBranch)) fmt.Printf("Opening: %s\n", newPRURL) - err = openBrowser(newPRURL) - if err != nil { + + if err := openBrowser(newPRURL); err != nil { log.Fatalf("Failed to open browser: %v", err) } }