Skip to content

Commit

Permalink
Fix file copy params
Browse files Browse the repository at this point in the history
  • Loading branch information
md-5 committed Sep 28, 2023
1 parent c05214f commit 55d9940
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ private void replaceFile( File oldFile, File newFile )
// Still didn't work. We'll do a copy
try
{
Files.copy( oldFile, newFile );
Files.copy( oldFile, origFile );
}
catch ( IOException ex )
{
Expand All @@ -306,7 +306,7 @@ private void replaceFile( File oldFile, File newFile )
// Still didn't work. We'll do a copy
try
{
Files.copy( oldFile, newFile );
Files.copy( newFile, oldFile );
}
catch ( IOException ex )
{
Expand Down

0 comments on commit 55d9940

Please sign in to comment.