Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
willdoran committed Feb 14, 2016
1 parent 6192e6b commit cf6c3c1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/common/global/event-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function (
};

$rootScope.hasManageSettingsPermission = function () {
return $rootScope.isAdmin() ? true : (_.intersection(($rootScope.currentUser || {}).permissions, ["Manage Users", "Manage Settings", "Bulk Data Import"]).length > 0);
return $rootScope.isAdmin() ? true : (_.intersection(($rootScope.currentUser || {}).permissions, ['Manage Users', 'Manage Settings', 'Bulk Data Import']).length > 0);
};

$rootScope.hasPermission = function (permission) {
Expand Down
2 changes: 1 addition & 1 deletion app/post/controllers/post-detail-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ function (
$promise
.then(function () {
var message = post.status === 'draft' ? 'notify.post.set_draft' : 'notify.post.publish_success';
var role = message == 'draft' ? 'draft' : (_.isEmpty(post.published_to) ? 'everyone' : post.published_to.join(", "));
var role = message === 'draft' ? 'draft' : (_.isEmpty(post.published_to) ? 'everyone' : post.published_to.join(', '));
$translate(message, {role: role})
.then(function (message) {
Notify.showNotificationSlider(message);
Expand Down
2 changes: 1 addition & 1 deletion app/post/directives/post-editor-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function (
$promise
.then(function (post) {
var message = post.status === 'draft' ? 'notify.post.set_draft' : 'notify.post.publish_success';
var role = message == 'draft' ? 'draft' : (_.isEmpty(post.published_to) ? 'everyone' : post.published_to.join(", "));
var role = message === 'draft' ? 'draft' : (_.isEmpty(post.published_to) ? 'everyone' : post.published_to.join(', '));
$translate(message, {role: role})
.then(function (message) {
Notify.showNotificationSlider(message);
Expand Down
2 changes: 1 addition & 1 deletion app/post/directives/post-preview-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function (
$promise
.then(function (post) {
var message = post.status === 'draft' ? 'notify.post.set_draft' : 'notify.post.publish_success';
var role = message == 'draft' ? 'draft' : (_.isEmpty(post.published_to) ? 'everyone' : post.published_to.join(", "));
var role = message === 'draft' ? 'draft' : (_.isEmpty(post.published_to) ? 'everyone' : post.published_to.join(', '));
$translate(message, {role: role})
.then(function (message) {
Notify.showNotificationSlider(message);
Expand Down

0 comments on commit cf6c3c1

Please sign in to comment.