Skip to content

Commit

Permalink
eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wedgberto committed May 18, 2022
1 parent f61b3a5 commit 98f4fb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const nopt = require('nopt');
const glob = require('fast-glob');
const events = require('cordova-common').events;
const AndroidManifest = require('./AndroidManifest');
const checkReqs = require('./check_reqs');
const xmlHelpers = require('cordova-common').xmlHelpers;
const CordovaError = require('cordova-common').CordovaError;
const ConfigParser = require('cordova-common').ConfigParser;
Expand Down Expand Up @@ -321,7 +320,7 @@ function updateProjectAccordingTo (platformConfig, locations) {
events.emit('verbose', `remove ${destFile}`);
fs.removeSync(destFile);
// remove any empty directories
var currentDir = path.dirname(destFile);
let currentDir = path.dirname(destFile);
const sourcesRoot = path.resolve(locations.root, 'src');
while (currentDir !== sourcesRoot) {
if (fs.existsSync(currentDir) && fs.readdirSync(currentDir).length === 0) {
Expand Down

0 comments on commit 98f4fb1

Please sign in to comment.