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

View file

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