Undo early return in updateData callback
**What**
Revert to original if-block structure to reduce the size of the diff
@@ -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);
