From 05655661180a85495963fea3fc0d034f4b4df369 Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 28 Sep 2006 06:48:27 +0000 Subject: [PATCH] coding standards git-svn-id: http://svn.openlayers.org/trunk/openlayers@1512 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Map.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index 9f6c591749..861546730c 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -354,8 +354,7 @@ OpenLayers.Map.prototype = { if (newBaseLayer != this.baseLayer) { // is newBaseLayer an already loaded layer? - var foundLayer = (this.layers.indexOf(newBaseLayer) != -1); - if (foundLayer) { + if (this.layers.indexOf(newBaseLayer) != -1) { // make the old base layer invisible if (this.baseLayer != null) {