Skip to content

Commit

Permalink
Merge pull request #7 from go-andiamo/any-fix
Browse files Browse the repository at this point in the history
Panic fix
  • Loading branch information
marrow16 committed Oct 29, 2022
2 parents 1c47c4f + c79c801 commit df5e7b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func NewSplitter(separator rune, encs ...*Enclosure) (Splitter, error) {
// MustCreateSplitter is the same as NewSplitter, except that it panics in case of error
func MustCreateSplitter(separator rune, encs ...*Enclosure) Splitter {
if s, err := NewSplitter(separator, encs...); err != nil {
panic(any(err))
panic(err)
} else {
return s
}
Expand Down

0 comments on commit df5e7b5

Please sign in to comment.