Skip to content

Commit 809333f

Browse files
authored
verificationhelper: use static format strings (#390)
1 parent 7dcd45e commit 809333f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/verificationhelper/verificationhelper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ func (vh *VerificationHelper) onVerificationStart(ctx context.Context, txn Verif
848848
// here, since the start command for scanning and showing QR codes
849849
// should be of type m.reciprocate.v1.
850850
log.Error().Str("method", string(txn.StartEventContent.Method)).Msg("Unsupported verification method in start event")
851-
vh.cancelVerificationTxn(ctx, txn, event.VerificationCancelCodeUnknownMethod, fmt.Sprintf("unknown method %s", txn.StartEventContent.Method))
851+
vh.cancelVerificationTxn(ctx, txn, event.VerificationCancelCodeUnknownMethod, "unknown method %s", txn.StartEventContent.Method)
852852
}
853853
}
854854

0 commit comments

Comments
 (0)