Skip to content

Commit

Permalink
make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Jul 12, 2023
1 parent 6b461e5 commit eea901d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/stale.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as templates from './lib/templates.mjs'

function makeStaleCheckCC (cc, shared_only, value) {
const shared = shared_only === true ? "Shared " : ""
function makeStaleCheckCC (cc, sharedOnly, value) {
const shared = sharedOnly === true ? 'Shared ' : ''
return {
name: `${shared}HTTP cache must not serve stale stored response when prohibited by \`Cache-Control: ${cc}\`.`,
id: `stale-close-${cc}${value || ''}`,
browser_skip: shared_only,
browser_skip: sharedOnly,
depends_on: ['stale-close'],
spec_anchors: [`cache-response-directive.${cc}`],
requests: [
Expand Down

0 comments on commit eea901d

Please sign in to comment.