Skip to content

Commit f603bc5

Browse files
committed
fix linter issues
Signed-off-by: seeflood <[email protected]>
1 parent 8175986 commit f603bc5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

demo/dynamic_configuration/main.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package main
22

33
import (
44
"context"
5-
"errors"
65
"fmt"
76

87
"google.golang.org/grpc"
@@ -38,7 +37,7 @@ func main() {
3837
panic(err)
3938
}
4039
if hello.Hello != "goodbye, eva" {
41-
panic(errors.New(fmt.Sprintf("Assertion failed! Result is %v", hello.Hello)))
40+
panic(fmt.Errorf("Assertion failed! Result is %v", hello.Hello))
4241
}
4342
fmt.Println(hello.Hello)
4443
}

0 commit comments

Comments
 (0)