Skip to content

Commit b5c052c

Browse files
committed
Fix lint errors
1 parent ffbacce commit b5c052c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

oura-library/src/main/kotlin/org/radarbase/oura/converter/OuraRingConfigurationConverter.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ class OuraRingConfigurationConverter(
4949
color = data.get("color")?.textValue()?.classifyColor() ?: OuraRingColor.UNKNOWN
5050
design = data.get("design")?.textValue()?.classifyDesign() ?: OuraRingDesign.UNKNOWN
5151
firmwareVersion = data.get("firmware_version")?.textValue()
52-
hardwareType = data.get("hardware_type")?.textValue()?.classifyHardware() ?: OuraRingHardwareType.UNKNOWN
53-
setUpAt = setupTime?.toEpochMilli()?.let { it / 1000.0 }
52+
hardwareType = data.get("hardware_type")?.textValue()?.classifyHardware()
53+
?: OuraRingHardwareType.UNKNOWN
54+
setUpAt = setupTime?.toEpochMilli()?.let { it / 1000.0 }
5455
size = data.get("size")?.intValue()
5556
}.build()
5657
}

oura-library/src/main/kotlin/org/radarbase/oura/request/OuraRequestGenerator.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ constructor(
100100
val endTime = (startOffset + HISTORICAL_QUERY_RANGE).coerceAtMost(endDate)
101101
route.generateRequests(user, startOffset, endTime)
102102
} else {
103-
// Recent data: use normal chunking with max request limit
103+
// Recent data: use normal chunking with max request limit
104104
route.generateRequests(user, startOffset, endDate, USER_MAX_REQUESTS)
105105
}
106106
}
@@ -151,7 +151,8 @@ constructor(
151151
request.user,
152152
request.endDate,
153153
)
154-
userNextRequest[request.user.versionedId] = Instant.now().plus(SUCCESS_BACK_OFF_TIME)
154+
userNextRequest[request.user.versionedId] =
155+
Instant.now().plus(SUCCESS_BACK_OFF_TIME)
155156
} else {
156157
userNextRequest[request.user.versionedId] = Instant.now().plus(BACK_OFF_TIME)
157158
}

0 commit comments

Comments
 (0)