Skip to content

Commit f5cc58c

Browse files
committed
fix: lint errors
1 parent daf29aa commit f5cc58c

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

lib/Services/cayenne.js

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
class Cayenne {
42
/**
53
* @param {String} url
@@ -161,11 +159,11 @@ class Cayenne {
161159
*/
162160
updateGroup(deviceId, groupId, payload) {
163161
const url = `${this.url}/things/${deviceId}/groups/${groupId}`;
164-
162+
165163
return this.auth.send(this.service, 'PUT', url, { payload });
166164
}
167165

168-
/**
166+
/**
169167
* Create an attribute group. Pass null to group_id to create a new group.
170168
* @param {String} deviceId The id of the parent device
171169
* @param {Object} payload The group to create
@@ -226,8 +224,8 @@ class Cayenne {
226224
*/
227225
updateAttribute(deviceId, groupId, attributeId, payload) {
228226
const url = `${
229-
this.url
230-
}/things/${deviceId}/groups/${groupId}/attributes/${attributeId}`;
227+
this.url
228+
}/things/${deviceId}/groups/${groupId}/attributes/${attributeId}`;
231229

232230
return this.auth.send(this.service, 'PUT', url, { payload });
233231
}
@@ -245,7 +243,7 @@ class Cayenne {
245243
return this.auth.send(this.service, 'DELETE', url);
246244
}
247245

248-
/**
246+
/**
249247
* Get an attribute
250248
* @param {String} deviceId
251249
* @param {String} groupId
@@ -262,7 +260,6 @@ class Cayenne {
262260
* End Device Attribute Routes
263261
*/
264262

265-
266263
/*
267264
* Begin Registry Routes
268265
*/
@@ -343,17 +340,17 @@ class Cayenne {
343340

344341
/**
345342
* Gets V2 all things data types
346-
* @param {Object} query
347-
* @param {Number} [query.limit]
348-
* @param {Number} [query.page]
343+
* @param {Object} query
344+
* @param {Number} [query.limit]
345+
* @param {Number} [query.page]
349346
*/
350347
getThingDataTypesV2(query) {
351348
const url = `${this.url}/v2/things/datatypes`;
352349
return this.auth.send(this.service, 'GET', url, { query });
353350
}
354351

355352
/**
356-
* Get V2 one things data type
353+
* Get V2 one things data type
357354
*/
358355
getThingDataTypeV2(id) {
359356
const url = `${this.url}/v2/things/datatypes/${id}`;
@@ -362,9 +359,9 @@ class Cayenne {
362359

363360
/**
364361
* Get V2 one things data type properties
365-
* @param {Object} query
366-
* @param {Number} [query.limit]
367-
* @param {Number} [query.page]
362+
* @param {Object} query
363+
* @param {Number} [query.limit]
364+
* @param {Number} [query.page]
368365
*/
369366
getThingDataTypePropertiesV2(id, query) {
370367
const url = `${this.url}/v2/things/datatypes/${id}/properties`;

0 commit comments

Comments
 (0)