Skip to content

Commit

Permalink
refactor: fix for KtLint report
Browse files Browse the repository at this point in the history
  • Loading branch information
joragua committed Jan 29, 2025
1 parent e6115ad commit 252e77e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ fun File.moveRecursively(
val relPath = src.toRelativeString(this)
val dstFile = File(target, relPath)
if (dstFile.exists() && !(src.isDirectory && dstFile.isDirectory)) {
val stillExists = if (!overwrite) { true }
else {
val stillExists = if (!overwrite) {
true
} else {
if (dstFile.isDirectory)
!dstFile.deleteRecursively()
else
Expand Down

0 comments on commit 252e77e

Please sign in to comment.