Skip to content

Commit

Permalink
Check for nil
Browse files Browse the repository at this point in the history
  • Loading branch information
fortuna committed Nov 6, 2024
1 parent b3bdc9e commit faffebb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions transport/split/stream_dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ func NewStreamDialer(dialer transport.StreamDialer, nextSplit SplitIterator) (tr
if dialer == nil {
return nil, errors.New("argument dialer must not be nil")
}
if nextSplit == nil {
return nil, errors.New("argument nextSplit must not be nil")
}
return &splitDialer{dialer: dialer, nextSplit: nextSplit}, nil
}

Expand Down

0 comments on commit faffebb

Please sign in to comment.