Skip to content

Commit

Permalink
Disabled warnings CS0618, CS1591 (#386)
Browse files Browse the repository at this point in the history
* Disabled warnings CS0618, CS1591
* Fixed (removed) incorrect xmldoc in JwtBuilder
  • Loading branch information
abatishchev authored Apr 10, 2022
1 parent ec83c3d commit 9ba5c20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 8 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>

<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\JwtStrongNameKey.snk</AssemblyOriginatorKeyFile>

<!-- Disable Warning CS1591: Missing XML comment for publicly visible type or member 'xyz' -->
<NoWarn>$(NoWarn);CS0618</NoWarn>

<!-- Disable Warning CS0618: 'xyz' is obsolete: -->
<NoWarn>$(Nowarn);CS1591</NoWarn>
</PropertyGroup>
</Project>
</Project>
3 changes: 1 addition & 2 deletions src/JWT/Builder/JwtBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ public T DecodeHeader<T>(string token)
/// Decodes a token using the supplied dependencies.
/// </summary>
/// <param name="token">The JWT</param>
/// <returns>The payload converted to <see cref="T" /></returns>
public T Decode<T>(string token)
{
EnsureCanDecode();
Expand Down Expand Up @@ -412,4 +411,4 @@ private bool CanDecodeHeader()
return true;
}
}
}
}

0 comments on commit 9ba5c20

Please sign in to comment.