Skip to content

Commit

Permalink
Merge pull request kodlamaio-projects#5 from piscu7/main
Browse files Browse the repository at this point in the history
fix : Duplicate injection problem solved
  • Loading branch information
ahmet-cetinkaya authored Oct 17, 2023
2 parents b3cf0d5 + 9e32d76 commit 29aec91
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ string[] codeLines
fileContent.InsertRange(
methodEndIndex,
collection: codeLines.Select(line => new string(' ', minimumSpaceCountInMethod) + line)
.Where(line => !fileContent.Contains(line))
);
await System.IO.File.WriteAllLinesAsync(filePath, contents: fileContent.ToArray());
}
Expand Down

0 comments on commit 29aec91

Please sign in to comment.