Skip to content

Commit

Permalink
fix : Duplicate injection problem solved
Browse files Browse the repository at this point in the history
  • Loading branch information
piscu7 committed Oct 1, 2023
1 parent b3cf0d5 commit 9e32d76
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 9e32d76

Please sign in to comment.