Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Dec 19, 2017
1 parent 0d2bf4f commit bf885c1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/app/organization/organizationPeopleController.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@

if ($state.params.viewEvents) {
$uibModalStack.dismissAll();
var user = $filter('filter')($scope.users, { id: $state.params.viewEvents });
if (user && user.length) {
$scope.events(user[0]);
var eventUser = $filter('filter')($scope.users, { id: $state.params.viewEvents });
if (eventUser && eventUser.length) {
$scope.events(eventUser[0]);
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/app/organization/organizationVaultController.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.module('bit.organization')

.controller('organizationVaultController', function ($scope, apiService, cipherService, $analytics, $q, $state,
$localStorage, $uibModal, $filter, authService, $filter, $uibModalStack) {
$localStorage, $uibModal, $filter, authService, $uibModalStack) {
$scope.ciphers = [];
$scope.collections = [];
$scope.loading = true;
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/eventService.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
angular
.module('bit.services')

.factory('eventService', function (constants, $filter, constants) {
.factory('eventService', function (constants, $filter) {
var _service = {};

_service.getDefaultDateFilters = function () {
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/utilsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ angular
_browserCache = constants.deviceType.firefox;
}
else if (/constructor/i.test(window.HTMLElement) ||
safariCheck(!window['safari'] || (typeof safari !== 'undefined' && safari.pushNotification))) {
safariCheck(!window.safari || (typeof safari !== 'undefined' && safari.pushNotification))) {
_browserCache = constants.deviceType.opera;
}
else if (!!document.documentMode) {
Expand Down

0 comments on commit bf885c1

Please sign in to comment.