Skip to content

Commit

Permalink
Use File.WriteAllText again
Browse files Browse the repository at this point in the history
  • Loading branch information
kartheekp-ms committed Oct 26, 2022
1 parent eb4fa27 commit ed1429e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NuGet.Core/NuGet.Common/Migrations/MigrationRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void Run()
{
Migration1.Run();
// Create file for the migration run, so that if an older version of NuGet is run, it doesn't try to run migrations again.
File.Create(expectedMigrationFilename).Dispose();
File.WriteAllText(expectedMigrationFilename, string.Empty);
}
}
catch { }
Expand Down

0 comments on commit ed1429e

Please sign in to comment.