Skip to content

Commit

Permalink
chore: 중복된 it 네이밍 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yangsooplus committed Dec 14, 2023
1 parent 86f6d79 commit ab0b05e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ inline fun <reified T> Flow<Preferences>.secureMap(
crossinline fetchValue: (Preferences) -> String?,
): Flow<T?> {
return map { pref ->
fetchValue(pref)?.let {
val decryptedValue = SecurityUtil.decrypt(it.split(SEPARATOR).map { it.toByte() }.toByteArray())
fetchValue(pref)?.let { encryptedString ->
val decryptedValue = SecurityUtil.decrypt(encryptedString.split(SEPARATOR).map { it.toByte() }.toByteArray())
json.decodeFromString(decryptedValue)
}
}
Expand Down

0 comments on commit ab0b05e

Please sign in to comment.