Skip to content

Commit d594c07

Browse files
committed
[BOOK-63] chore: code style check success
1 parent 17fa0c7 commit d594c07

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

core/datastore/src/main/kotlin/com/ninecraft/booket/core/datastore/datasource/TokenPreferencesDataSourceImpl.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import com.ninecraft.booket.core.datastore.util.handleIOException
99
import com.orhanobut.logger.Logger
1010
import kotlinx.coroutines.flow.Flow
1111
import kotlinx.coroutines.flow.map
12+
import java.security.GeneralSecurityException
1213
import javax.inject.Inject
1314
import javax.inject.Named
1415

@@ -46,7 +47,7 @@ class TokenPreferencesDataSourceImpl @Inject constructor(
4647
prefs[key]?.let {
4748
try {
4849
cryptoManager.decrypt(it)
49-
} catch (e: Exception) {
50+
} catch (e: GeneralSecurityException) {
5051
Logger.e(e, "Failed to decrypt token")
5152
""
5253
}

core/datastore/src/main/kotlin/com/ninecraft/booket/core/datastore/di/DataStoreModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ abstract class DataStoreBindModule {
3636
@Binds
3737
@Singleton
3838
abstract fun bindTokenPreferencesDataSource(
39-
tokenPreferencesDataSourceImpl: TokenPreferencesDataSourceImpl
39+
tokenPreferencesDataSourceImpl: TokenPreferencesDataSourceImpl,
4040
): TokenPreferencesDataSource
4141
}

0 commit comments

Comments
 (0)