This is much easier than straightening brackets. You have a certain type of block - an empty block - and JSLint does not like empty blocks. He wants allegations.
, undefined, , :
Sessions.getVars = function()
{
return $http.get(baseURL)
.then(function(response) { return response.data; },
function(response) { return undefined; });
};
, , .
, JSLint , squigglies, !; ^) , , JSLint.
:
sloppy - "use strict";white - . , , , Expected exactly one space between ')' and '{'.
, JSLint.com, , , JSLint, , . old.jslint.com.
, , , JSLint " ", response : function() { return "Something"; });. .
TODO, todo.
:
Sessions.getVars = function()
{
return $http.get(baseURL)
.then(function(response) { return response.data; },
function() {
return undefined;
});
};