Skip to content

Commit 0e4544b

Browse files
andreypelykhbevacqua
authored andcommitted
Update ch04.asciidoc (mjavascript#20)
1 parent d768a1e commit 0e4544b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapters/ch04.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ We could've used more variables without creating a function, inlining the comput
108108

109109
[source,javascript]
110110
----
111-
const hasToken = auth === undefined || auth.token === undefined
111+
const hasToken = auth !== undefined && auth.token !== undefined
112112
const hasValidToken = hasToken && auth.expires > Date.now()
113113
if (hasValidToken) {
114114
return

0 commit comments

Comments
 (0)