Skip to content

Commit

Permalink
Set a char array of newlines to split string instead of implicit conv…
Browse files Browse the repository at this point in the history
…ersion from string to char

PiperOrigin-RevId: 583295132
  • Loading branch information
maddevrelgithubbot committed Nov 17, 2023
1 parent 468d92c commit aa72bab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void OnPostGenerateGradleAndroidProject(string path)
private string DeleteLineContainingSubstring(string file, string substring)
{
string newFile = "";
var lines = file.Split(Environment.NewLine);
var lines = file.Split(new[] { Environment.NewLine }, StringSplitOptions.None);
foreach (var line in lines)
{
if (!line.Contains(substring))
Expand Down

0 comments on commit aa72bab

Please sign in to comment.