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
|
|
@ -55,7 +55,7 @@ func getCmd(args []string, depth int) (Runner, error) {
|
||||||
case "edit":
|
case "edit":
|
||||||
return NewEditCmd(args[1:])
|
return NewEditCmd(args[1:])
|
||||||
case "comment":
|
case "comment":
|
||||||
if strings.Contains(strings.Join(args,""),jkl.CommentIdSeparator){
|
if strings.Contains(strings.Join(args, ""), jkl.CommentIdSeparator) {
|
||||||
return NewEditCommentCmd(args[1:])
|
return NewEditCommentCmd(args[1:])
|
||||||
}
|
}
|
||||||
return NewCommentCmd(args[1:])
|
return NewCommentCmd(args[1:])
|
||||||
|
|
@ -80,21 +80,21 @@ 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;
|
|
||||||
// this means it's a transition.
|
|
||||||
|
|
||||||
// tcmd, err := NewTransitionCommand(args)
|
|
||||||
// if err != nil {return nil, err}
|
|
||||||
// return tcmd, nil
|
|
||||||
}
|
}
|
||||||
|
// Swapping the first two args didn't help;
|
||||||
|
// this means it's a transition.
|
||||||
|
|
||||||
|
// tcmd, err := NewTransitionCommand(args)
|
||||||
|
// if err != nil {return nil, err}
|
||||||
|
// 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(){
|
|
||||||
sort.Strings(verbs)
|
func init() {
|
||||||
|
sort.Strings(verbs)
|
||||||
}
|
}
|
||||||
|
|
||||||
const usage = `Usage:
|
const usage = `Usage:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue