From 68b18e6e70a2c701d498d8282460c2358a1e4cfa Mon Sep 17 00:00:00 2001 From: Rasmus Kaj Date: Sat, 15 Aug 2020 19:39:06 +0200 Subject: [PATCH] Minor cleanup. --- src/server/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/context.rs b/src/server/context.rs index 7077233..5fde9a8 100644 --- a/src/server/context.rs +++ b/src/server/context.rs @@ -73,7 +73,7 @@ impl GlobalContext { .map_err(|e| format!("Bad jwt token: {:?}", e))?; if !verify_token(&token, self.jwt_secret.as_ref())? { - return Err(format!("Invalid token {:?}", token))?; + return Err(format!("Invalid token {:?}", token)); } let claims = token.payload; debug!("Verified token for: {:?}", claims);