Skip to content

Commit

Permalink
Remove unnecessary RequireSettings.Condition check in ResourceRequire…
Browse files Browse the repository at this point in the history
…dContext (#16242)
  • Loading branch information
hishamco authored Jun 6, 2024
1 parent c1cb095 commit 9ce156f
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,13 @@ public void WriteTo(TextWriter writer, string appPath)

tagBuilder.WriteTo(writer, NullHtmlEncoder.Default);

if (!string.IsNullOrEmpty(Settings.Condition))
if (Settings.Condition == NotIE)
{
writer.Write("<!--<![endif]-->");
}
else
{
if (Settings.Condition == NotIE)
{
writer.Write("<!--<![endif]-->");
}
else
{
writer.Write("<![endif]-->");
}
writer.Write("<![endif]-->");
}
}
}
Expand Down

0 comments on commit 9ce156f

Please sign in to comment.