Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: seeflood <[email protected]>
  • Loading branch information
seeflood committed Aug 15, 2022
1 parent 8175986 commit f603bc5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions demo/dynamic_configuration/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"context"
"errors"
"fmt"

"google.golang.org/grpc"
Expand Down Expand Up @@ -38,7 +37,7 @@ func main() {
panic(err)
}
if hello.Hello != "goodbye, eva" {
panic(errors.New(fmt.Sprintf("Assertion failed! Result is %v", hello.Hello)))
panic(fmt.Errorf("Assertion failed! Result is %v", hello.Hello))
}
fmt.Println(hello.Hello)
}

0 comments on commit f603bc5

Please sign in to comment.