Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove some more "not" conditions

  • Loading branch information...
commit 398a68113b0b9014860e7663c09ba7e1c1bf5dec 1 parent 264ee18
@jmhodges authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rchardet/universaldetector.rb
View
4 lib/rchardet/universaldetector.rb
@@ -62,9 +62,9 @@ def feed(aBuf)
return if @done
aLen = aBuf.length
- return if not aLen
+ return if aLen == 0
- if not @gotData
+ if !@gotData
# If the data starts with BOM, we know it is UTF
if aBuf[0, 3] == "\xEF\xBB\xBF"
# EF BB BF UTF-8 with BOM
Please sign in to comment.
Something went wrong with that request. Please try again.