Merge pull request #489 from Riverside-Healthcare/dev

This commit is contained in:
sur.la.route 2022-12-16 10:55:11 -06:00 committed by GitHub
commit ba830fabd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ def reformat_file(config: Config, this_file: Path) -> dict:
if config.format_js:
beautified_code = format_js(beautified_code, config)
if config.check is not True:
if config.check is not True or config.stdin is True:
# update the file
this_file.write_text(beautified_code, encoding="utf8")