Browse Source

lint: clean up whitespace

pull/1206/head
Chris Johnston 6 years ago
parent
commit
fefcbe5641
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/Discord.Net.Core/Utils/TokenUtils.cs

+ 3
- 0
src/Discord.Net.Core/Utils/TokenUtils.cs View File

@@ -28,6 +28,9 @@ namespace Discord
/// </returns> /// </returns>
internal static bool CheckBotTokenValidity(string message) internal static bool CheckBotTokenValidity(string message)
{ {
if (string.IsNullOrWhiteSpace(message))
return false;

// split each component of the JWT // split each component of the JWT
var segments = message.Split('.'); var segments = message.Split('.');




Loading…
Cancel
Save