Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
notJoon committed Oct 28, 2024
1 parent 09f419d commit f09e339
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/gno.land/p/demo/json/buffer.gno
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package json
import (
"errors"
"io"
"unicode"

"gno.land/p/demo/ufmt"
)
Expand Down Expand Up @@ -33,7 +32,7 @@ func (b *buffer) first() (byte, error) {
for ; b.index < b.length; b.index++ {
c := b.data[b.index]

if !unicode.IsSpace(rune(c)) {
if !(c == whiteSpace || c == carriageReturn || c == newLine || c == tab) {
return c, nil
}
}
Expand Down

0 comments on commit f09e339

Please sign in to comment.