Skip to content

Commit 44cd10b

Browse files
build: upgrade to xo 0.58 (#110)
1 parent e9cb7f8 commit 44cd10b

File tree

3 files changed

+614
-623
lines changed

3 files changed

+614
-623
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import process from 'node:process';
22

33
// eslint-disable-next-line import/no-anonymous-default-export
44
export default function (options) {
5-
options = options || {};
5+
options ||= {};
66
const maxAge = options.maxAge || 86_400;
77
const includeSubDomains = options.includeSubDomains === undefined ? true : options.includeSubdomains;
88

@@ -11,7 +11,7 @@ export default function (options) {
1111
const secure = request.connection.encrypted || (request.get('X-Forwarded-Proto') === 'https');
1212

1313
if (options.ignoreFilter) {
14-
ignoreRequest = ignoreRequest || options.ignoreFilter(request);
14+
ignoreRequest ||= options.ignoreFilter(request);
1515
}
1616

1717
if (ignoreRequest) {

0 commit comments

Comments
 (0)