Skip to content

Commit 4f0b903

Browse files
committed
fix missing return
1 parent 81e52ef commit 4f0b903

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/src/org/commcare/location/CommCareLocationController.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,11 @@ fun shouldDiscardLocation(location: Location): Boolean {
3939
return false
4040
}
4141

42-
fun getStaleLocationException(location: Location): Throwable {
42+
fun getStaleLocationException(location: Location): Throwable =
4343
Exception(
44-
"Stale location with accuracy ${location.accuracy}" +
44+
"Stale location with accuracy ${location.accuracy}" +
4545
" with time ${location.time}" + " and current device time ${System.currentTimeMillis()}"
4646
)
47-
}
4847

4948
fun logStaleLocationSaved(location: Location) {
5049
if (!isLocationFresh(location, DEFAULT_TIME_THRESHOLD)) {

0 commit comments

Comments
 (0)