Enabled eslint:space-unary-ops
Rule enabled, discovered issues resolved. Change-Id: I655bebf6cffc0e7d05e485af530f947b17e2be29
This commit is contained in:
parent
d3b9dd1cba
commit
0de591bb4c
|
@ -55,7 +55,6 @@
|
|||
"space-infix-ops": 0,
|
||||
"no-shadow": 0,
|
||||
"consistent-return": 0,
|
||||
"space-unary-ops": 0,
|
||||
|
||||
// Stylistic
|
||||
"indent": [2, 4],
|
||||
|
|
|
@ -100,14 +100,14 @@ angular.module('sb.story').controller('StoryModalController',
|
|||
var lastTask = $scope.tasks[$scope.tasks.length - 1];
|
||||
var project_id = lastTask.project_id;
|
||||
|
||||
if (! project_id ) {
|
||||
if (!project_id) {
|
||||
// if we are in the scope of a project, grab the project ID
|
||||
// from that scope.
|
||||
project_id = params.projectId || null;
|
||||
}
|
||||
|
||||
var current_task = new Task({project_id: project_id});
|
||||
if ( project_id ) {
|
||||
if (project_id) {
|
||||
// Preload the project
|
||||
Project.get({
|
||||
id: project_id
|
||||
|
|
Loading…
Reference in New Issue