From 1c24de490be05cb03b82d877471d613e0768603a Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Thu, 8 Sep 2011 13:30:21 -0500 Subject: [PATCH] Treat as binary if encoding is nil --- lib/linguist/blob_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb index 08e88581..ab48e918 100644 --- a/lib/linguist/blob_helper.rb +++ b/lib/linguist/blob_helper.rb @@ -94,7 +94,7 @@ module Linguist if mime_type = Mime.lookup_mime_type_for(pathname.extname) mime_type.binary? else - detect_encoding.nil? || detect_encoding[:type] == :binary + encoding.nil? || detect_encoding[:type] == :binary end end