Skip to content

Commit 7a02738

Browse files
committed
fix: return error instead of panicking in non-Linux openURLSanitized stub
1 parent 8362d8e commit 7a02738

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pkg/open/appimage_other.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
package open
44

5+
import "errors"
6+
57
func isAppImage() bool {
68
return false
79
}
810

911
func openURLSanitized(_ string) error {
10-
panic("openURLSanitized is only available on Linux")
12+
return errors.New("openURLSanitized is only available on Linux")
1113
}

0 commit comments

Comments
 (0)