Skip to content

Commit 3c58b76

Browse files
fix(tbtcpg): use format string in fmt.Errorf to fix go vet error
Go 1.24 vet rejects non-constant format strings in fmt.Errorf. This pre-existing issue was hidden because CI was not running tests.
1 parent 3f5307e commit 3c58b76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/tbtcpg/internal/test/marshaling.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ func (psts *ProposeSweepTestScenario) UnmarshalJSON(data []byte) error {
273273

274274
// Unmarshal expected error
275275
if len(unmarshaled.ExpectedErr) > 0 {
276-
psts.ExpectedErr = fmt.Errorf(unmarshaled.ExpectedErr)
276+
psts.ExpectedErr = fmt.Errorf("%s", unmarshaled.ExpectedErr)
277277
}
278278

279279
return nil

0 commit comments

Comments
 (0)