提交 f72c133b 编写于 作者: J Jingwen Owen Ou

Remove utils.Fatal

上级 ccef8192
......@@ -28,7 +28,7 @@ set with BRANCH.
func checkout(command *Command, args *Args) {
if !args.IsParamsEmpty() {
err := transformCheckoutArgs(args)
utils.Fatal(err)
utils.Check(err)
}
}
......
......@@ -24,7 +24,7 @@ ID and title, similar to the GitHub Merge Button.
func merge(command *Command, args *Args) {
if !args.IsParamsEmpty() {
err := transformMergeArgs(args)
utils.Fatal(err)
utils.Check(err)
}
}
......
......@@ -9,12 +9,6 @@ import (
"strings"
)
func Fatal(err error) {
if err != nil {
log.Fatal(err)
}
}
func Check(err error) {
if err != nil {
log.Fatalf("fatal: %v", err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册