Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F38E2200B72 for ; Fri, 26 Aug 2016 23:35:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F226E160AB6; Fri, 26 Aug 2016 21:35:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 44B9E160A94 for ; Fri, 26 Aug 2016 23:35:08 +0200 (CEST) Received: (qmail 17421 invoked by uid 500); 26 Aug 2016 21:35:02 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 17388 invoked by uid 99); 26 Aug 2016 21:35:02 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2016 21:35:02 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4A637E04BE; Fri, 26 Aug 2016 21:35:02 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shazron@apache.org To: commits@cordova.apache.org Date: Fri, 26 Aug 2016 21:35:03 -0000 Message-Id: In-Reply-To: <5f155e483811498ab7a95bdd89dd7b77@git.apache.org> References: <5f155e483811498ab7a95bdd89dd7b77@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] cordova-paramedic git commit: CB-11775 - Fix jshint failures archived-at: Fri, 26 Aug 2016 21:35:09 -0000 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 Authored: Fri Aug 26 14:38:58 2016 -0700 Committer: Shazron Abdullah 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