Skip to content

Commit

Permalink
satisfy linkers
Browse files Browse the repository at this point in the history
  • Loading branch information
alovak committed Sep 22, 2023
1 parent a2f1fe0 commit 2f27b3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion field/composite.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (f *Composite) getSubfields() map[string]Field {
// will result in a panic.
func (f *Composite) SetSpec(spec *Spec) {
if err := spec.Validate(); err != nil {
panic(err) // as specs moslty static, we panic on spec validation errors
panic(err) //nolint:forbidigo,nolintlint // as specs moslty static, we panic on spec validation errors
}
f.spec = spec

Expand Down
2 changes: 1 addition & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type Message struct {
func NewMessage(spec *MessageSpec) *Message {
// Validate the spec
if err := spec.Validate(); err != nil {
panic(err) // as specs moslty static, we panic on spec validation errors
panic(err) //nolint:forbidigo,nolintlint // as specs moslty static, we panic on spec validation errors
}

fields := spec.CreateMessageFields()
Expand Down
2 changes: 1 addition & 1 deletion test/fuzz-reader/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func Fuzz(data []byte) int {

_, err = message.Pack()
if err != nil {
panic(fmt.Errorf("failed to pack unpacked message: %w", err))
panic(fmt.Errorf("failed to pack unpacked message: %w", err)) //nolint:forbidigo,nolintlint
}

return 1
Expand Down

0 comments on commit 2f27b3c

Please sign in to comment.