From 61aaa6a85000942c57923306b0494147548b10bb Mon Sep 17 00:00:00 2001 From: Dmitry Shirokov Date: Thu, 15 Aug 2013 12:26:35 +1000 Subject: [PATCH] sbcs - oneline cleanup --- encoding/sbcs.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/encoding/sbcs.js b/encoding/sbcs.js index 766fc80..7db90b4 100644 --- a/encoding/sbcs.js +++ b/encoding/sbcs.js @@ -273,9 +273,7 @@ module.exports.ISO_8859_1 = function() { }; this.name = function(det) { - if (typeof det == 'undefined') - return 'ISO-8859-1'; - return det.fC1Bytes ? 'windows-1252' : 'ISO-8859-1'; + return (det && det.fC1Bytes) ? 'windows-1252' : 'ISO-8859-1'; }; }; util.inherits(module.exports.ISO_8859_1, sbcs);