Skip to content

Commit

Permalink
Fix typo in snapshot write
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadapc committed May 28, 2024
1 parent c254d7f commit 1e68eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/watchman/WatchmanBackend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ void WatchmanBackend::writeSnapshot(Watcher &watcher, std::string *snapshotPath)
auto temporaryDirectory = std::filesystem::temp_directory_path();
auto temporaryFilePath = temporaryDirectory.append("tmp-parcel-snapshot.txt");
{
std::ofstream ofs(*snapshotPath);
std::ofstream ofs(*temporaryFilePath);
ofs << clockValue;
ofs.flush();
ofs.close();
Expand Down

0 comments on commit 1e68eb4

Please sign in to comment.