Skip to content

Commit

Permalink
fix: return existing content from GetFileContent instead of an empty …
Browse files Browse the repository at this point in the history
…string
  • Loading branch information
haitham911 committed Nov 17, 2024
1 parent fbb6f2a commit 600a229
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/exec/stack_processor_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,8 @@ func CreateComponentStackMap(
func GetFileContent(filePath string) (string, error) {
existingContent, found := getFileContentSyncMap.Load(filePath)
if found && existingContent != nil {
return "", nil
return fmt.Sprintf("%s", existingContent), nil

}

content, err := os.ReadFile(filePath)
Expand Down

0 comments on commit 600a229

Please sign in to comment.