remove useless function definition for copy path existency

This commit is contained in:
fatih ergin 2023-06-21 23:56:35 +03:00
parent b84faf1763
commit 411c732fa8
1 changed files with 1 additions and 5 deletions

View File

@ -183,15 +183,11 @@ class PickDirectoryDialog(
private fun getOtherFolderOpeningPath(): String { private fun getOtherFolderOpeningPath(): String {
val lastCopyPath = config.lastCopyPath val lastCopyPath = config.lastCopyPath
val lastCopyPathExist = {
activity.getDoesFilePathExist(lastCopyPath)
}
val lastCopyPathVisible = { val lastCopyPathVisible = {
showHidden || !lastCopyPath.split(File.separator).any { it.startsWith(".") && it.length > 1 } showHidden || !lastCopyPath.split(File.separator).any { it.startsWith(".") && it.length > 1 }
} }
return if (lastCopyPathExist() && lastCopyPathVisible()) { return if (activity.getDoesFilePathExist(lastCopyPath) && lastCopyPathVisible()) {
lastCopyPath lastCopyPath
} else { } else {
sourcePath sourcePath