From 40feb8f6ec8ac24f42f1314eded2c0d8888a8c7e Mon Sep 17 00:00:00 2001 From: deaflynx Date: Wed, 4 Nov 2020 07:18:54 +0200 Subject: [PATCH] Code review: device.service beautify --- ui-ngx/src/app/core/http/device.service.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui-ngx/src/app/core/http/device.service.ts b/ui-ngx/src/app/core/http/device.service.ts index 23dd53c2fd..048a6196f7 100644 --- a/ui-ngx/src/app/core/http/device.service.ts +++ b/ui-ngx/src/app/core/http/device.service.ts @@ -155,11 +155,14 @@ export class DeviceService { return this.http.delete(`/api/customer/device/${deviceName}/claim`, defaultHttpOptionsFromConfig(config)); } - public assignDeviceToEdge(edgeId: string, deviceId: string, config?: RequestConfig): Observable { - return this.http.post(`/api/edge/${edgeId}/device/${deviceId}`, defaultHttpOptionsFromConfig(config)); + public assignDeviceToEdge(edgeId: string, deviceId: string, + config?: RequestConfig): Observable { + return this.http.post(`/api/edge/${edgeId}/device/${deviceId}`, + defaultHttpOptionsFromConfig(config)); } - public unassignDeviceFromEdge(edgeId: string, deviceId: string, config?: RequestConfig) { + public unassignDeviceFromEdge(edgeId: string, deviceId: string, + config?: RequestConfig) { return this.http.delete(`/api/edge/${edgeId}/device/${deviceId}`, defaultHttpOptionsFromConfig(config)); }