Skip to content

Commit 70cecbd

Browse files
committed
chore(bundler): Simplify restoring the backup file
Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 56c3c95 commit 70cecbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/package-managers/composer/src/main/kotlin/LockfileProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class LockfileProvider(private val definitionFile: File) {
4242
block(lockfile)
4343
} finally {
4444
lockfile.delete()
45-
definitionFileBackup?.also { it.toPath().moveTo(definitionFile.toPath(), overwrite = true) }
45+
definitionFileBackup?.toPath()?.moveTo(definitionFile.toPath(), overwrite = true)
4646
}
4747
}
4848

0 commit comments

Comments
 (0)