Skip to content

Commit 2512033

Browse files
authored
chore: resolve lint check (#1189)
Getting lint check: non-constant format string in call to fmt.Errorf errors.New() is a better way to write this
1 parent e794a09 commit 2512033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/client/example_runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ func (ee *exampleExecutor) pollUntilFinished() error {
346346

347347
if state == string(domain.Failed) {
348348
ee.logger.Printf("Last operation for %q was %q: %s\n", ee.InstanceID, state, responseBody["description"])
349-
return false, fmt.Errorf(responseBody["description"])
349+
return false, errors.New(responseBody["description"])
350350
}
351351

352352
ee.logger.Printf("Last operation for %q was %q\n", ee.InstanceID, state)

0 commit comments

Comments
 (0)