You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2018/09/30 18:49:10 UTC
[cordova-paramedic] 02/02: fix confusing ! usage
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch janpio-fix_jshint_errors
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git
commit f60c5d612851aeec8e02f8b471893943f994a319
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Sun Sep 30 20:48:57 2018 +0200
fix confusing ! usage
---
lib/paramedic.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/paramedic.js b/lib/paramedic.js
index 7f518a1..4f09966 100644
--- a/lib/paramedic.js
+++ b/lib/paramedic.js
@@ -123,7 +123,7 @@ ParamedicRunner.prototype.checkConfig = function () {
throw new Error('No tests to run: both --skipAppiumTests and --skipMainTests are used');
}
checkCli: {
- if (!(this.config.getCli() === 'cordova') && !(this.config.getCli() === 'phonegap')) {
+ if (this.config.getCli() !== 'cordova' && this.config.getCli() !== 'phonegap') {
if (path.isAbsolute(this.config.getCli())) {
break checkCli;
}
@@ -329,7 +329,7 @@ ParamedicRunner.prototype.runLocalTests = function () {
self.setPermissions();
logger.normal('cordova-paramedic: running command ' + command);
- if (!self.config.getPlatformId() === util.BROWSER) {
+ if (self.config.getPlatformId() !== util.BROWSER) {
return execPromise(command);
}
runProcess = cp.exec(command, function () {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org