Skip to content

Commit

Permalink
fixed lint gosimple "should omit nil check; len()"
Browse files Browse the repository at this point in the history
  • Loading branch information
korolev-d-l committed Aug 21, 2024
1 parent 8868eb3 commit a7370c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion write.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (f *headerFrame) write(w io.Writer) (err error) {
if f.Properties.ContentEncoding != "" {
mask |= flagContentEncoding
}
if f.Properties.Headers != nil && len(f.Properties.Headers) > 0 {
if len(f.Properties.Headers) > 0 {
mask |= flagHeaders
}
if f.Properties.DeliveryMode > 0 {
Expand Down

0 comments on commit a7370c8

Please sign in to comment.