Skip to content

dont edit file if contents haven't changed #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2025
Merged

Conversation

ryantm
Copy link
Contributor

@ryantm ryantm commented Jun 13, 2025

Why

  • editing .replit causes other things to recompute, let's not edit it if we didn't change it

What changed

  • check strings are different before writing to file

Test plan

  • ran it and sent [ { "op": "add", "path": "foo", "value": "123" }] multiple times and saw it only changed the first time

Why
===
* editing .replit causes other things to recompute, let's not edit it
if we didn't change it

What changed
===
* check strings are different before writing to file

Test plan
===
* ran it and sent `[ { "op": "add", "path": "foo", "value": "123" }]`
multiple times and saw it only changed the first time
@ryantm ryantm merged commit 7452ace into main Jun 13, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants