From f5d5d9a504348d4164584bb4a6df7ccc88d4f003 Mon Sep 17 00:00:00 2001 From: Jordan Rinke Date: Thu, 31 Jul 2014 13:45:17 -0700 Subject: [PATCH] fixed 2 coding errors noted by travis --- src/app/services/influxdb/influxdbDatasource.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/services/influxdb/influxdbDatasource.js b/src/app/services/influxdb/influxdbDatasource.js index 905e58b9414..7f3cacea550 100644 --- a/src/app/services/influxdb/influxdbDatasource.js +++ b/src/app/services/influxdb/influxdbDatasource.js @@ -267,7 +267,7 @@ function (angular, _, kbn, InfluxSeries) { case "w": expires += ttlLength * 604800000; default: - throw "Unknown ttl duration format"; + throw "Unknown ttl duration format"; } var data = [{ @@ -298,7 +298,7 @@ function (angular, _, kbn, InfluxSeries) { var expiresCol = _.indexOf(results[0].columns, 'expires'); var expiresTime = results[0].points[0][expiresCol]; if (Date.now() > expiresTime && isTemp) { - throw "Dashboard has expired"; + throw "Dashboard has expired"; } var dashCol = _.indexOf(results[0].columns, 'dashboard'); var dashJson = results[0].points[0][dashCol];