提交 a173beda 编写于 作者: D Darren Wee

Clean up listLabels by removing unnecessary else branch.

上级 db1a2e06
......@@ -27,13 +27,14 @@ func listLabels(cmd *Command, args *Args) {
if args.Noop {
ui.Printf("Would request list of labels for %s\n", project)
} else {
labels, err := gh.FetchLabels(project)
utils.Check(err)
return
}
labels, err := gh.FetchLabels(project)
utils.Check(err)
for _, label := range labels {
ui.Printf(formatLabel(label, true))
}
for _, label := range labels {
ui.Printf(formatLabel(label, true))
}
args.NoForward()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册