Skip to content

Commit 576f84b

Browse files
refactor(authentication-middleware): remover condicional sem uso
1 parent c7e70ab commit 576f84b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middlewares/authentication-middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function tokenValido ({ authorization }) {
3333
}
3434

3535
const tokenDecodificado = authService.verifyToken(authorization)
36-
if (tokenDecodificado.email === undefined || tokenDecodificado.password === undefined) {
36+
if (tokenDecodificado.email === undefined) {
3737
return false
3838
}
3939

0 commit comments

Comments
 (0)