Permalink
Browse files

remove some more "not" conditions

  • Loading branch information...
1 parent 264ee18 commit 398a68113b0b9014860e7663c09ba7e1c1bf5dec @jmhodges committed Dec 2, 2012
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

0 comments on commit 398a681

Please sign in to comment.