From 050cc069a15a97ec8ff81a03c7dac66340ede61f Mon Sep 17 00:00:00 2001 From: Vishal Mishra Date: Tue, 10 Jan 2017 14:08:13 -0800 Subject: [PATCH] Removed unused variable assignment --- www/screenorientation.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/www/screenorientation.js b/www/screenorientation.js index 891c3bc..0711387 100644 --- a/www/screenorientation.js +++ b/www/screenorientation.js @@ -56,7 +56,6 @@ var p = new Promise(function(resolve, reject) { if (screenObject.nativeLock != null) { promiseLock = screenObject.nativeLock(orientation); - flag = true; } else { resolveOrientation(orientation, resolve, reject); } @@ -98,4 +97,4 @@ } window.addEventListener("orientationchange", orientationChange, true); - module.exports = screenOrientation; \ No newline at end of file + module.exports = screenOrientation;