Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make a conditional slightly less confusing

  • Loading branch information...
commit d17f899d896ae9238e1636b6f718943b323ef940 1 parent 4a1b9e8
@jmhodges authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/rchardet/charsetgroupprober.rb
View
5 lib/rchardet/charsetgroupprober.rb
@@ -53,8 +53,9 @@ def reset
def get_charset_name
if not @_mBestGuessProber
get_confidence()
- return nil unless @_mBestGuessProber
- # self._mBestGuessProber = self._mProbers[0]
+ if not @_mBestGuessProber
+ return nil
+ end
end
return @_mBestGuessProber.get_charset_name()
end
Please sign in to comment.
Something went wrong with that request. Please try again.