We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d18777 + 73990c1 commit 93546fbCopy full SHA for 93546fb
internal/open/open.go
@@ -21,8 +21,10 @@ func runOpen(cmd *base.Command, args []string) {
21
return
22
}
23
questionId, err := strconv.Atoi(args[0])
24
- base.CheckErr(err)
25
- browser.Open("https://github.com/openset/leetcode#" + args[0])
+ if err != nil {
+ cmd.Usage()
26
+ return
27
+ }
28
problems := leetcode.ProblemsAll()
29
for _, problem := range problems.StatStatusPairs {
30
if problem.Stat.FrontendQuestionId == questionId {
internal/version/version.go
@@ -7,7 +7,7 @@ import (
7
"github.com/openset/leetcode/internal/base"
8
)
9
10
-const version = "1.4.5"
+const version = "1.4.6"
11
12
var CmdVersion = &base.Command{
13
Run: runVersion,
0 commit comments