This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-cli.git

commit f3ce003c1e307386a6a62ce85f35d4a416472a8e
Author: kezhenxu94 <kezhenx...@163.com>
AuthorDate: Sun Nov 10 03:20:24 2019 +0800

    Fix golang lint warnings
---
 display/display.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/display/display.go b/display/display.go
index 3d54f6b..0b43b06 100644
--- a/display/display.go
+++ b/display/display.go
@@ -19,7 +19,6 @@
 package display
 
 import (
-       "errors"
        "fmt"
        "github.com/apache/skywalking-cli/display/json"
        "github.com/apache/skywalking-cli/display/table"
@@ -46,6 +45,6 @@ func Display(ctx *cli.Context, object interface{}) error {
        case Table:
                return table.Display(object)
        default:
-               return errors.New(fmt.Sprintf("unsupported display style: %s", 
displayStyle))
+               return fmt.Errorf("unsupported display style: %s", displayStyle)
        }
 }

Reply via email to