Skip to content

Commit c86db60

Browse files
committed
style: format
1 parent edc2504 commit c86db60

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

nordicNRPlus/locationDataFromCOAPToLwm2m.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ export const locationDataFromCOAPToLwm2m = (
55
location: LocationData,
66
ts: number,
77
): LwM2MObjectInstance[] => [
8-
{
9-
ObjectID: 14201,
10-
ObjectVersion: '1.0',
11-
ObjectInstanceID: location.src === 'WIFI' ? 1 : 0,
12-
Resources: {
13-
'0': location.lat,
14-
'1': location.lon,
15-
'3': location.uncertainty,
16-
'6': location.src,
17-
'99': ts / 1000,
18-
},
8+
{
9+
ObjectID: 14201,
10+
ObjectVersion: '1.0',
11+
ObjectInstanceID: location.src === 'WIFI' ? 1 : 0,
12+
Resources: {
13+
'0': location.lat,
14+
'1': location.lon,
15+
'3': location.uncertainty,
16+
'6': location.src,
17+
'99': ts / 1000,
1918
},
20-
]
19+
},
20+
]

nordicNRPlus/thingExists.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import { type IoTClient, DescribeThingCommand } from '@aws-sdk/client-iot'
22

3-
export const thingExists = (
4-
iotClient: IoTClient) => async (
5-
thingName: string,
6-
): Promise<boolean> => {
7-
try {
8-
await iotClient.send(new DescribeThingCommand({ thingName }))
9-
return true
10-
} catch {
11-
return false
3+
export const thingExists =
4+
(iotClient: IoTClient) =>
5+
async (thingName: string): Promise<boolean> => {
6+
try {
7+
await iotClient.send(new DescribeThingCommand({ thingName }))
8+
return true
9+
} catch {
10+
return false
11+
}
1212
}
13-
}

0 commit comments

Comments
 (0)