Undo early return in updateData callback

**What**
- Revert to original if-block structure to reduce the size of the diff

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
This commit is contained in:
Lucas Roesler 2018-12-19 21:21:32 +01:00 committed by Alex Ellis
parent cb367096ae
commit 334288b130

View File

@ -185,10 +185,7 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$interval', '$f
var cl = function (previousItems) {
$http.get("../system/functions").then(function (response) {
if (response == null || response.data == null) {
return
}
if (response && response.data) {
if (previousItems.length != response.data.length) {
$scope.functions = response.data;
@ -210,6 +207,7 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$interval', '$f
}
}
}
}
});
};
cl(previous);