Add ';' and correct indent

This commit is contained in:
Loic GUEGAN 2016-04-17 18:44:29 +02:00
parent fdfdd27a35
commit 968eda48cc

View file

@ -42,7 +42,7 @@ mainApp.factory('Identity',[ '$http', '$cookies', '$rootScope', function($http,
// Return I'm not Login
return false;
}
};
@ -61,7 +61,7 @@ mainApp.factory('Identity',[ '$http', '$cookies', '$rootScope', function($http,
//location.reload();
$rootScope.$broadcast("logoutEvent");
}
};
/**
@ -98,11 +98,9 @@ mainApp.factory('Identity',[ '$http', '$cookies', '$rootScope', function($http,
// Put token in var
token = response.data.token;
}
else if(failedToSendRequest){
} else if (failedToSendRequest) {
requestParserResult.failReason = "Failed to send request";
}
else{
} else {
requestParserResult.failReason = "Please check your username, password and project name !";
}
@ -146,14 +144,14 @@ mainApp.factory('Identity',[ '$http', '$cookies', '$rootScope', function($http,
*/
var getProfile = function () {
return profile;
}
};
/*
* Get the token
*/
var getToken = function () {
return token;
}
};