Permalink
Browse files

make a conditional slightly less confusing

  • Loading branch information...
1 parent 4a1b9e8 commit d17f899d896ae9238e1636b6f718943b323ef940 @jmhodges committed Dec 2, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 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

0 comments on commit d17f899

Please sign in to comment.