Skip to content

Commit

Permalink
Removing straightforward IDE warns and errs
Browse files Browse the repository at this point in the history
  • Loading branch information
Viliam Rockai committed Apr 3, 2015
1 parent 81432e8 commit 64111ff
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
1 change: 1 addition & 0 deletions plugins/accounts/plugins/accounts/ts/authInterceptor.ts
Expand Up @@ -14,6 +14,7 @@
/// limitations under the License.

/// <reference path="accountsPlugin.ts"/>
/// <reference path="auth.ts"/>
/**
* Attention: this class will probably be replaced by the proper hawt.io Keycloak integration.
* While it's not done, we are doing the integration by ourselves.
Expand Down
4 changes: 2 additions & 2 deletions plugins/alerts/plugins/alerts/ts/actions.ts
Expand Up @@ -24,7 +24,7 @@ module HawkularAlerts {
deleteAction(actionId: string):void;
closeAlertMsg(index: number):void;
changePlugin():void;
};
}

export class ActionsController implements IActionsController {
public static $inject = ['$scope', '$window', '$interval', '$log', 'HawkularAlert'];
Expand Down Expand Up @@ -152,7 +152,7 @@ module HawkularAlerts {
this.$scope.msgs.splice(index, 1);
}

};
}

_module.controller('HawkularAlerts.ActionsController', ActionsController);
}
4 changes: 2 additions & 2 deletions plugins/alerts/plugins/alerts/ts/dashboard.ts
Expand Up @@ -20,7 +20,7 @@ module HawkularAlerts {
showRefreshForm(): void;
hideRefreshForm(): void;
updateRefresh(): void;
};
}

export class DashboardController implements IDashboardController {
public static $inject = ['$scope', '$interval', '$log', 'HawkularAlert'];
Expand Down Expand Up @@ -123,7 +123,7 @@ module HawkularAlerts {
}
this.$scope.msgs.push(newAlert);
}
};
}

_module.controller('HawkularAlerts.DashboardController', DashboardController);

Expand Down
4 changes: 2 additions & 2 deletions plugins/alerts/plugins/alerts/ts/definitions.ts
Expand Up @@ -30,7 +30,7 @@ module HawkularAlerts {
deleteCondition(conditionId: string, description: string):void;
cancelCondition():void;
saveDampening():void;
};
}

export class DefinitionsController implements IDefinitionsController {
public static $inject = ['$scope', '$window', '$log', 'HawkularAlert'];
Expand Down Expand Up @@ -371,7 +371,7 @@ module HawkularAlerts {
this.$scope.statusCondition = {status: ''};
}

};
}

_module.controller('HawkularAlerts.DefinitionsController', DefinitionsController);
}
1 change: 1 addition & 0 deletions plugins/directives/plugins/sidebar/ts/sidebarPlugin.ts
Expand Up @@ -15,6 +15,7 @@

/// <reference path="../../includes.ts"/>
/// <reference path="sidebarGlobals.ts"/>
/// <reference path="sidebarDirective.ts"/>
module Sidebar {

export var _module = angular.module(pluginName, ['duScroll']);
Expand Down
1 change: 1 addition & 0 deletions plugins/directives/plugins/topbar/ts/topbarPlugin.ts
Expand Up @@ -15,6 +15,7 @@

/// <reference path="../../includes.ts"/>
/// <reference path="topbarGlobals.ts"/>
/// <reference path="topbarDirective.ts"/>
module Topbar {

export var _module = angular.module(pluginName, ['ngResource', 'hawkular.services', 'ui.bootstrap']);
Expand Down
1 change: 1 addition & 0 deletions plugins/directives/plugins/topbar/ts/topbarServices.ts
Expand Up @@ -15,6 +15,7 @@

/// <reference path="../../includes.ts"/>
/// <reference path="topbarGlobals.ts"/>
/// <reference path="topbarPlugin.ts"/>
module Topbar {

export class HawkularNav {
Expand Down
6 changes: 1 addition & 5 deletions plugins/metrics/plugins/metrics/ts/metricsAlerts.ts
Expand Up @@ -52,11 +52,7 @@ module HawkularMetrics {
return true;
}

if ((value.start > $scope.alertsTimeStart) && (value.start < $scope.alertsTimeEnd)) {
return true;
}

return false;
return !!((value.start > $scope.alertsTimeStart) && (value.start < $scope.alertsTimeEnd));
};

HawkularAlertsManager.queryConsoleAlerts(this.metricId).then((data)=> {
Expand Down

0 comments on commit 64111ff

Please sign in to comment.