Skip to content

Commit

Permalink
fix: typo in os constant
Browse files Browse the repository at this point in the history
  • Loading branch information
KarolosLykos committed Jan 15, 2024
1 parent 554adb8 commit 6949788
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
TabBest = "Best"
Linux = "linux"
Windows = "windows"
Darwing = "darwing"
Darwin = "darwin"
)

var Items = struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func Open(url string, runtimeOS string) error {
err = exec.Command("xdg-open", url).Start()
case constants.Windows:
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start()
case constants.Darwing:
case constants.Darwin:
err = exec.Command("open", url).Start()
default:
err = fmt.Errorf("unsupported platform")
Expand Down

0 comments on commit 6949788

Please sign in to comment.