Skip to content

Commit

Permalink
Fix helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink committed Jun 17, 2022
1 parent 74651d1 commit bb82b43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Microsoft.TestPlatform.CrossPlatEngine/NullableHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ internal static class StringUtils
/// <inheritdoc cref="StringUtils.IsNullOrEmpty(string)"/>
[SuppressMessage("ApiDesign", "RS0030:Do not used banned APIs", Justification = "Replacement API to allow nullable hints for compiler")]
public static bool IsNullOrEmpty([NotNullWhen(returnValue: false)] this string? value)
=> StringUtils.IsNullOrEmpty(value);
=> string.IsNullOrEmpty(value);

/// <inheritdoc cref="StringUtils.IsNullOrWhiteSpace(string)"/>
[SuppressMessage("ApiDesign", "RS0030:Do not used banned APIs", Justification = "Replacement API to allow nullable hints for compiler")]
public static bool IsNullOrWhiteSpace([NotNullWhen(returnValue: false)] this string? value)
=> StringUtils.IsNullOrWhiteSpace(value);
=> string.IsNullOrWhiteSpace(value);
}

[SuppressMessage("ApiDesign", "RS0030:Do not used banned APIs", Justification = "Replacement API to allow nullable hints for compiler")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal static class StringUtils
/// <inheritdoc cref="StringUtils.IsNullOrEmpty(string)"/>
[SuppressMessage("ApiDesign", "RS0030:Do not used banned APIs", Justification = "Replacement API to allow nullable hints for compiler")]
public static bool IsNullOrEmpty([NotNullWhen(returnValue: false)] this string? value)
=> StringUtils.IsNullOrEmpty(value);
=> string.IsNullOrEmpty(value);

/// <inheritdoc cref="StringUtils.IsNullOrWhiteSpace(string)"/>
[SuppressMessage("ApiDesign", "RS0030:Do not used banned APIs", Justification = "Replacement API to allow nullable hints for compiler")]
Expand Down

0 comments on commit bb82b43

Please sign in to comment.