Skip to content

Commit 4ff5fea

Browse files
committed
fix: remove hardcoded check
1 parent 84f4279 commit 4ff5fea

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

internal/sync/batch.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"fmt"
77
"os"
88
"path/filepath"
9-
"strings"
109
"sync"
1110
"time"
1211

@@ -400,15 +399,6 @@ func (bp *BatchProcessor) processFileJobWithReporter(ctx context.Context, source
400399
"content_matches": contentMatches,
401400
}).Debug("Comparing existing vs transformed content")
402401

403-
// For .vscode/settings.json specifically, add detailed content comparison when there's a mismatch
404-
if strings.Contains(job.DestPath, ".vscode/settings.json") && !contentMatches {
405-
logger.WithFields(logrus.Fields{
406-
"existing_content": existingStr,
407-
"transformed_content": transformedStr,
408-
"content_equal": contentMatches,
409-
}).Warn("VSCode settings content mismatch - displaying full content for debugging")
410-
}
411-
412402
if contentMatches {
413403
logger.Debug("File content unchanged after transformation, skipping")
414404
return fileProcessResult{

internal/sync/repository.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -391,16 +391,6 @@ func (rs *RepositorySync) processFile(ctx context.Context, sourcePath string, fi
391391
"content_matches": contentMatches,
392392
}).Debug("Comparing existing vs transformed content")
393393

394-
// For .vscode/settings.json specifically, add detailed content comparison when there's a mismatch
395-
if strings.Contains(fileMapping.Dest, ".vscode/settings.json") && !contentMatches {
396-
rs.logger.WithFields(logrus.Fields{
397-
"file": fileMapping.Dest,
398-
"existing_content": existingStr,
399-
"transformed_content": transformedStr,
400-
"content_equal": contentMatches,
401-
}).Warn("VSCode settings content mismatch - displaying full content for debugging")
402-
}
403-
404394
if contentMatches {
405395
rs.logger.WithField("file", fileMapping.Dest).Debug("File content unchanged, skipping")
406396
return nil, internalerrors.ErrTransformNotFound

0 commit comments

Comments
 (0)