Skip to content

Commit ae5eabe

Browse files
committed
chore: lint
1 parent 29ab4a1 commit ae5eabe

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

app/src/main/java/to/bitkit/repositories/ActivityRepo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class ActivityRepo @Inject constructor(
211211
runCatching {
212212
coreService.activity.closedChannels(sortDirection)
213213
}.onFailure { e ->
214-
Logger.error("Error getting closed channels (sortDirection=${SortDirection})", e, context = TAG)
214+
Logger.error("Error getting closed channels (sortDirection=$sortDirection)", e, context = TAG)
215215
}
216216
}
217217

app/src/main/java/to/bitkit/repositories/BackupRepo.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,14 +408,12 @@ class BackupRepo @Inject constructor(
408408
val parsed = json.decodeFromString<MetadataBackupV1>(String(dataBytes))
409409
db.tagMetadataDao().upsert(parsed.tagMetadata)
410410
cacheStore.update { parsed.cache }
411-
Logger.debug("Restored caches and ${parsed.tagMetadata.size} tags metadata records", context = TAG)
411+
Logger.debug("Restored caches and ${parsed.tagMetadata.size} tags metadata records", TAG)
412412
}
413413
performRestore(BackupCategory.BLOCKTANK) { dataBytes ->
414414
val parsed = json.decodeFromString<BlocktankBackupV1>(String(dataBytes))
415415
blocktankRepo.restoreFromBackup(parsed).onSuccess {
416-
Logger.debug(
417-
"Restored ${parsed.orders.size} orders, ${parsed.cjitEntries.size} CJITs", context = TAG,
418-
)
416+
Logger.debug("Restored ${parsed.orders.size} orders, ${parsed.cjitEntries.size} CJITs", TAG)
419417
}
420418
}
421419
performRestore(BackupCategory.ACTIVITY) { dataBytes ->

app/src/main/java/to/bitkit/repositories/BlocktankRepo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ class BlocktankRepo @Inject constructor(
384384
}
385385

386386
// We don't refresh orders here because we rely on the polling mechanism.
387-
// We also don't restore `paidOrders` as the refresh should do it using the paidOrderIds from restored cache.
387+
// We also don't restore `paidOrders` the refresh interval uses restored paidOrderIds to rebuild the list.
388388

389389
_blocktankState.update {
390390
it.copy(

0 commit comments

Comments
 (0)