Skip to content

Commit

Permalink
Update format-json.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
Rem0o committed Oct 18, 2024
1 parent 6747d94 commit 544fcf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions format-json.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,6 @@ foreach ($baseFile in $baseFiles) {
$exitCode = -1
$problem = "Formatting for [$translationFile] is wrong"

Write-Output $translationJson
Write-Output $formattedTranslationJson

Compare-Strings -string1 $formattedTranslationJson -string2 $translationJson

if ($Fix) {
Expand All @@ -194,6 +191,9 @@ foreach ($baseFile in $baseFiles) {
if ($formattedBaseJson -ne $baseJson) {
$exitCode = -1;
$problem = "Formatting for [$baseFile] is wrong"

Compare-Strings -string1 $formattedBaseJson -string2 $baseJson

if ($Fix) {
Write-Output "Formatting [$baseFile]"
Set-Content -Path $baseFile.FullName -Value $formattedBaseJson -NoNewLine
Expand Down

0 comments on commit 544fcf4

Please sign in to comment.