提交 7365f03f 编写于 作者: D Darren Wee

Move NoForward to before Noop catch

上级 7de9e5c3
...@@ -445,6 +445,7 @@ func listLabels(cmd *Command, args *Args) { ...@@ -445,6 +445,7 @@ func listLabels(cmd *Command, args *Args) {
gh := github.NewClient(project.Host) gh := github.NewClient(project.Host)
args.NoForward()
if args.Noop { if args.Noop {
ui.Printf("Would request list of labels for %s\n", project) ui.Printf("Would request list of labels for %s\n", project)
return return
...@@ -457,8 +458,6 @@ func listLabels(cmd *Command, args *Args) { ...@@ -457,8 +458,6 @@ func listLabels(cmd *Command, args *Args) {
// TODO add a colorize flag for the labels command // TODO add a colorize flag for the labels command
ui.Printf(formatLabel(label, true)) ui.Printf(formatLabel(label, true))
} }
args.NoForward()
} }
func formatLabel(label github.IssueLabel, colorize bool) string { func formatLabel(label github.IssueLabel, colorize bool) string {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册