Minor lint cleanups
Wasn't sure about the unused variable: `var defaultIssue = &JiraIssue{}`
let me know if that needs to stay there for some reason. I built and
installed `jkl` and quick tests show things appear to still be working.
This commit is contained in:
parent
1458b63287
commit
9bb208ddf1
1 changed files with 11 additions and 11 deletions
|
|
@ -80,7 +80,7 @@ func getCmd(args []string, depth int) (Runner, error) {
|
||||||
}
|
}
|
||||||
args[0], args[1] = args[1], args[0]
|
args[0], args[1] = args[1], args[0]
|
||||||
return getCmd(args, depth+1)
|
return getCmd(args, depth+1)
|
||||||
} else {
|
}
|
||||||
// Swapping the first two args didn't help;
|
// Swapping the first two args didn't help;
|
||||||
// this means it's a transition.
|
// this means it's a transition.
|
||||||
|
|
||||||
|
|
@ -88,11 +88,11 @@ func getCmd(args []string, depth int) (Runner, error) {
|
||||||
// if err != nil {return nil, err}
|
// if err != nil {return nil, err}
|
||||||
// return tcmd, nil
|
// return tcmd, nil
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return nil, ErrTaskSubCommandNotFound
|
return nil, ErrTaskSubCommandNotFound
|
||||||
}
|
}
|
||||||
|
|
||||||
var verbs = []string{"list", "create", "task", "edit", "comment", "edit-comment"}
|
var verbs = []string{"list", "create", "task", "edit", "comment", "edit-comment"}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
sort.Strings(verbs)
|
sort.Strings(verbs)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue