cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [2/2] cordova-paramedic git commit: CB-11775 - Fix jshint failures
Date Fri, 26 Aug 2016 21:35:03 GMT
CB-11775 - Fix jshint failures


Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/4daf71e5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/4daf71e5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/4daf71e5

Branch: refs/heads/master
Commit: 4daf71e5bc10fb6c2913972b505faba619fdb429
Parents: fe6d2b7
Author: Shazron Abdullah <shazron@apache.org>
Authored: Fri Aug 26 14:38:58 2016 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Fri Aug 26 14:38:58 2016 -0700

----------------------------------------------------------------------
 .jshintignore                          |  1 +
 lib/appium/helpers/screenshotHelper.js | 10 +++++-----
 2 files changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/4daf71e5/.jshintignore
----------------------------------------------------------------------
diff --git a/.jshintignore b/.jshintignore
new file mode 100644
index 0000000..2818ce9
--- /dev/null
+++ b/.jshintignore
@@ -0,0 +1 @@
+lib/appium/helpers/lib/q.min.js
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/4daf71e5/lib/appium/helpers/screenshotHelper.js
----------------------------------------------------------------------
diff --git a/lib/appium/helpers/screenshotHelper.js b/lib/appium/helpers/screenshotHelper.js
index dab6d75..a544ea0 100644
--- a/lib/appium/helpers/screenshotHelper.js
+++ b/lib/appium/helpers/screenshotHelper.js
@@ -33,11 +33,11 @@ function generateScreenshotName() {
     var min = date.getMinutes();
     var sec = date.getSeconds();
 
-    month = (month < 10 ? "0" : "") + month;
-    day = (day < 10 ? "0" : "") + day;
-    hour = (hour < 10 ? "0" : "") + hour;
-    min = (min < 10 ? "0" : "") + min;
-    sec = (sec < 10 ? "0" : "") + sec;
+    month = (month < 10 ? '0' : '') + month;
+    day = (day < 10 ? '0' : '') + day;
+    hour = (hour < 10 ? '0' : '') + hour;
+    min = (min < 10 ? '0' : '') + min;
+    sec = (sec < 10 ? '0' : '') + sec;
 
     return date.getFullYear() + '-' + month + '-' + day + '_' +  hour + '.' + min + '.' +
sec + '.png';
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message