Skip to content

Commit

Permalink
chg - Take out the argument null check
Browse files Browse the repository at this point in the history
---

Type: chg
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Mar 25, 2024
1 parent 234a78b commit baaac00
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Terminaux/Base/TermInfo/TermInfoDesc.Static.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ public static bool TryLoad(out TermInfoDesc? result)
/// <returns><c>true</c> if the terminfo description was loaded successfully; otherwise, <c>false</c>.</returns>
public static bool TryLoad(string name, out TermInfoDesc? result)
{
if (string.IsNullOrEmpty(name))
throw new ArgumentNullException(nameof(name));

try
{
result = Load(name);
Expand All @@ -89,13 +86,8 @@ public static bool TryLoad(string name, out TermInfoDesc? result)
/// <param name="name">The name of the terminfo description to load.</param>
/// <returns>The default terminfo description for the current terminal,
/// or <c>null</c> if none could be resolved.</returns>
public static TermInfoDesc? Load(string name)
{
if (string.IsNullOrEmpty(name))
throw new ArgumentNullException(nameof(name));

return TermInfoLoader.Load(name);
}
public static TermInfoDesc? Load(string name) =>
TermInfoLoader.Load(name);

/// <summary>
/// Tries to read a terminfo description from a stream.
Expand Down

0 comments on commit baaac00

Please sign in to comment.