Skip to content

Commit 25c4b80

Browse files
misc: addressed lint
1 parent beadf29 commit 25c4b80

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

packages/util/helper.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -623,17 +623,3 @@ func OpenBrowser(url string) error {
623623

624624
return cmd.Start()
625625
}
626-
627-
// OpenBrowser attempts to open a URL in the user's default browser
628-
func OpenBrowser(url string) error {
629-
var cmd *exec.Cmd
630-
switch runtime.GOOS {
631-
case "darwin":
632-
cmd = exec.Command("open", url)
633-
case "windows":
634-
cmd = exec.Command("cmd", "/c", "start", url)
635-
default: // linux and others
636-
cmd = exec.Command("xdg-open", url)
637-
}
638-
return cmd.Start()
639-
}

0 commit comments

Comments
 (0)