Skip to content

Commit 6690e51

Browse files
Fix 1 occurrence of if-else-false-to-and
This `if` expression can be refactored to an equivalent expression using `and`.
1 parent 1821d97 commit 6690e51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http-easy-lib/http-easy/private/session.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
[(301 302 303) 'get]
260260
[(307) method])
261261
#:headers (hash-remove headers 'authorization)
262-
#:auth (if (same-origin? dest-url u) auth #f)
262+
#:auth (and (same-origin? dest-url u) auth)
263263
#:history (cons resp history)
264264
#:redirects (sub1 redirects-remaining)))]
265265

0 commit comments

Comments
 (0)