You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2018/08/22 08:57:18 UTC
[cordova-lib] branch master updated: Organize imports in
HooksRunner.spec (#654)
This is an automated email from the ASF dual-hosted git repository.
raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-lib.git
The following commit(s) were added to refs/heads/master by this push:
new 774c4d2 Organize imports in HooksRunner.spec (#654)
774c4d2 is described below
commit 774c4d2abe1a9d5ae49f3a0e9318ecc95f01d66a
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Wed Aug 22 10:57:15 2018 +0200
Organize imports in HooksRunner.spec (#654)
Minor cleanup of the imports in HooksRunner.spec. No functional changes.
---
src/hooks/HooksRunner.js | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/src/hooks/HooksRunner.js b/src/hooks/HooksRunner.js
index e05a541..0f19e84 100644
--- a/src/hooks/HooksRunner.js
+++ b/src/hooks/HooksRunner.js
@@ -15,18 +15,17 @@
under the License.
*/
-var cordovaUtil = require('../cordova/util');
-var events = require('cordova-common').events;
-var Q = require('q');
-var scriptsFinder = require('./scriptsFinder');
-var Context = require('./Context');
-var CordovaError = require('cordova-common').CordovaError;
-var path = require('path');
-var fs = require('fs');
-var os = require('os');
-var superspawn = require('cordova-common').superspawn;
-
-var isWindows = os.platform().slice(0, 3) === 'win';
+const fs = require('fs');
+const os = require('os');
+const path = require('path');
+const Q = require('q');
+
+const cordovaUtil = require('../cordova/util');
+const scriptsFinder = require('./scriptsFinder');
+const Context = require('./Context');
+const { CordovaError, events, superspawn } = require('cordova-common');
+
+const isWindows = os.platform().slice(0, 3) === 'win';
/**
* Tries to create a HooksRunner for passed project root.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org