Skip to content

Commit

Permalink
Removed unused variable from InternalParse() private method of the Ho…
Browse files Browse the repository at this point in the history
…stsFileEntryParser class.
  • Loading branch information
xvitaly committed Mar 14, 2024
1 parent b897643 commit b078065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mhlib/HostsFileEntryParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private static HostsFileEntryParser InternalParse(string Value, bool TryParse)
{
return new HostsFileEntryParser(Value.Substring(0, SpaceIndex), CommentIndex > SpaceIndex ? Value.Substring(SpaceIndex + 1, CommentIndex - SpaceIndex - 2) : Value.Remove(0, SpaceIndex + 1), CommentIndex > 0 ? Value.Substring(CommentIndex + 1).Trim() : string.Empty);
}
catch (Exception Ex)
catch
{
if (TryParse) { return null; } else { throw; }
}
Expand Down

0 comments on commit b078065

Please sign in to comment.