mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 18:17:21 +01:00
use nullorempty
This commit is contained in:
parent
dbf4a90df2
commit
4650893599
4 changed files with 7 additions and 7 deletions
|
|
@ -196,7 +196,7 @@ public class ServerConfigurationManager
|
|||
public string GetDiscordUserFromToken(ServerStorage server)
|
||||
{
|
||||
JwtSecurityTokenHandler handler = new JwtSecurityTokenHandler();
|
||||
if (server.OAuthToken == null) return string.Empty;
|
||||
if (string.IsNullOrEmpty(server.OAuthToken)) return string.Empty;
|
||||
try
|
||||
{
|
||||
var token = handler.ReadJwtToken(server.OAuthToken);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue