From f9eb4d704e6859ec09beb7e0de1869542b813281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=B7=9D?= Date: Tue, 21 Jul 2015 15:02:28 +0800 Subject: [PATCH] superfluous code --- lib/application.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/application.js b/lib/application.js index e143df017..4f3b94619 100644 --- a/lib/application.js +++ b/lib/application.js @@ -225,9 +225,6 @@ Application.load = function(name, component, opts) { opts = component; component = name; name = null; - if(typeof component.name === 'string') { - name = component.name; - } } if(typeof component === 'function') { @@ -1015,4 +1012,4 @@ var addFilter = function(app, type, filter) { app.set(type, filters); } filters.push(filter); -}; \ No newline at end of file +};