Skip to content

Commit cbe4d38

Browse files
committed
refactor: getAppSpecificExternalAnkiDroidDirectory return value
Assisted-by: Claude Fable 5
1 parent 1980cfd commit cbe4d38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AnkiDroid/src/main/java/com/ichi2/anki/startup/SetupStorage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private fun legacyAnkiDroidDirectory(directoryName: String = "AnkiDroid"): File
156156
*
157157
* @throws SystemStorageException if `getExternalFilesDir` returns null
158158
*/
159-
private fun getAppSpecificExternalAnkiDroidDirectory(context: Context): String? {
159+
private fun getAppSpecificExternalAnkiDroidDirectory(context: Context): String {
160160
val externalFilesDir = context.getExternalFilesDir(null)
161161

162162
// This value *may* be null but we strictly require it. This has caused NullPointerException

0 commit comments

Comments
 (0)