Changeset

10661:4eee1aaa9405

util.jwt: Remove unused return value from tests [luacheck]
author Kim Alvefur <zash@zash.se>
date Mon, 24 Feb 2020 09:10:28 +0100
parents 10660:c4ded3be7cc0
children 10662:46373b97e648
files spec/util_jwt_spec.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/spec/util_jwt_spec.lua	Mon Feb 24 01:24:25 2020 +0100
+++ b/spec/util_jwt_spec.lua	Mon Feb 24 09:10:28 2020 +0100
@@ -13,7 +13,7 @@
 		local key = "secret";
 		local token = jwt.sign("wrong", { payload = "this" });
 		assert.string(token);
-		local ok, err = jwt.verify(key, token);
+		local ok = jwt.verify(key, token);
 		assert.falsy(ok)
 	end);
 end);