Skip to content

Commit 74d2e6f

Browse files
committed
gcs: use the + for concatenattion in Error()
Don't use fmt.Sprintf when you're just concatenating two strings.
1 parent edf44e3 commit 74d2e6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcs/decider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ type failedAcquisitionErr struct {
150150
}
151151

152152
func (f *failedAcquisitionErr) Error() string {
153-
return fmt.Sprintf("failed to acquire lock: %s", f.err)
153+
return "failed to acquire lock: " + f.err.Error()
154154
}
155155

156156
func (f *failedAcquisitionErr) Unwrap() error {

0 commit comments

Comments
 (0)