refact(cmd/cat): remove useless code
License: MIT Signed-off-by: chenminjian <727180553@qq.com>
chenminjian committed
Dec 10, 2018 at 19:12 UTC
1c94a62c485cf86da17d5f9f7f45194ba2a066c5
1 file changed
+1
-3
core/commands/cat.go
+1
-3
@@ -55,9 +55,7 @@ var CatCmd = &cmds.Command{
55
}
56
57
max, found := req.Options[lengthOptionName].(int64)
58
- if err != nil {
59
- return err
60
- }
58
+
59
if max < 0 {
60
return fmt.Errorf("cannot specify negative length")
61
}