瀏覽代碼

fixed jshint issues

Torkel Ödegaard 11 年之前
父節點
當前提交
8699dec571
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      Gruntfile.js
  2. 3 3
      src/app/services/grafana/grafanaDatasource.js

+ 1 - 1
Gruntfile.js

@@ -35,4 +35,4 @@ module.exports = function (grunt) {
   // pass the config to grunt
   grunt.initConfig(config);
 
-};
+};

+ 3 - 3
src/app/services/grafana/grafanaDatasource.js

@@ -6,14 +6,14 @@ define([
   'kbn',
   'moment'
 ],
-function (angular, _, $, config, kbn, moment) {
+function (angular) {
   'use strict';
 
   var module = angular.module('grafana.services');
 
   module.factory('GrafanaDatasource', function($q, $http) {
 
-    function GrafanaDatasource(datasource) {
+    function GrafanaDatasource() {
       this.type = 'grafana';
       this.grafanaDB = true;
     }
@@ -44,7 +44,7 @@ function (angular, _, $, config, kbn, moment) {
     GrafanaDatasource.prototype.saveDashboard = function(dashboard) {
       return $http.post('/api/dashboard/', { dashboard: dashboard })
         .then(function() {
-            return { title: dashboard.title, url: '/dashboard/db/' + dashboard.title };
+          return { title: dashboard.title, url: '/dashboard/db/' + dashboard.title };
         }, function(data) {
           throw "Failed to search: " + data;
         });