From 98bf765a0b8cdcb03f787afbdf4adcc51bf58f77 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 2 Jun 2014 17:10:10 +0200 Subject: fixed jshint --- pyload/web/app/scripts/helpers/formatSize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyload/web/app/scripts/helpers/formatSize.js b/pyload/web/app/scripts/helpers/formatSize.js index ddd62a1a5..1fe04f6b0 100644 --- a/pyload/web/app/scripts/helpers/formatSize.js +++ b/pyload/web/app/scripts/helpers/formatSize.js @@ -7,7 +7,7 @@ define('helpers/formatSize', ['handlebars', 'utils/i18n'], function(Handlebars, //multiplier 1024 is used for trafficleft because trafficleft is in KiB if (typeof multiplier === 'number') bytes = bytes * multiplier; - + if (!bytes || bytes === 0) return '0 B'; if (bytes === -1) return i18n.gettext('not available'); -- cgit v1.2.3