Fix formatting issues

revert-70aa11f8
Charitha Goonetilleke 9 years ago
parent d8a9b642ff
commit 15a6e4b63b

@ -243,8 +243,7 @@ deviceModule = function () {
deviceObject[constants["DEVICE_PROPERTIES"]] = properties; deviceObject[constants["DEVICE_PROPERTIES"]] = properties;
return deviceObject; return deviceObject;
} }
} },
,
function (responsePayload) { function (responsePayload) {
var response = {}; var response = {};
response["status"] = "error"; response["status"] = "error";
@ -266,8 +265,7 @@ deviceModule = function () {
return serviceInvokers.XMLHttp.get( return serviceInvokers.XMLHttp.get(
url, function (responsePayload) { url, function (responsePayload) {
return responsePayload; return responsePayload;
} },
,
function (responsePayload) { function (responsePayload) {
log.error(responsePayload); log.error(responsePayload);
return -1; return -1;
@ -280,8 +278,7 @@ deviceModule = function () {
return serviceInvokers.XMLHttp.get( return serviceInvokers.XMLHttp.get(
url, function (responsePayload) { url, function (responsePayload) {
return responsePayload; return responsePayload;
} },
,
function (responsePayload) { function (responsePayload) {
log.error(responsePayload); log.error(responsePayload);
return -1; return -1;
@ -289,14 +286,12 @@ deviceModule = function () {
); );
}; };
publicMethods.getDeviceTypes = function () { publicMethods.getDeviceTypes = function () {
var url = devicemgtProps["httpsURL"] + constants.ADMIN_SERVICE_CONTEXT + "/devices/types"; var url = devicemgtProps["httpsURL"] + constants.ADMIN_SERVICE_CONTEXT + "/devices/types";
return serviceInvokers.XMLHttp.get( return serviceInvokers.XMLHttp.get(
url, function (responsePayload) { url, function (responsePayload) {
return responsePayload; return responsePayload;
} },
,
function (responsePayload) { function (responsePayload) {
log.error(responsePayload); log.error(responsePayload);
return -1; return -1;
@ -336,8 +331,7 @@ deviceModule = function () {
responsePayload[i].thumb = utility.getDeviceThumb(responsePayload[i].type); responsePayload[i].thumb = utility.getDeviceThumb(responsePayload[i].type);
} }
return responsePayload; return responsePayload;
} },
,
function (responsePayload) { function (responsePayload) {
log.error(responsePayload); log.error(responsePayload);
return -1; return -1;

Loading…
Cancel
Save