Skip to content

Commit c3acbad

Browse files
committed
Per reviewdog, don't log sensitive information.
1 parent f76641c commit c3acbad

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

library/src/main/java/io/fusionauth/mobilesdk/storage/DataStoreStorage.kt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import androidx.datastore.preferences.preferencesDataStore
1111
import kotlinx.coroutines.flow.catch
1212
import kotlinx.coroutines.flow.first
1313
import kotlinx.coroutines.flow.map
14-
import java.io.IOException
1514

1615
// Define the DataStore instance as an extension on Context.
1716
// The name "_fusionauth_mobile_sdk" is the file name where preferences will be stored.
@@ -36,12 +35,8 @@ class DataStoreStorage(private val context: Context) : Storage {
3635
val prefKey = stringPreferencesKey(key)
3736
return context.dataStore.data
3837
.catch { exception ->
39-
if (exception is IOException) {
40-
Log.e(TAG, "Error reading from DataStore: " + exception.message)
41-
emit(emptyPreferences())
42-
} else {
43-
throw exception
44-
}
38+
Log.e(TAG, "Error reading from DataStore" )
39+
emit(emptyPreferences())
4540
}
4641
.map { preferences ->
4742
preferences[prefKey]

0 commit comments

Comments
 (0)