code: function sendBadge(format, badgeData) {
            if (serverUnresponsive) {
              return
            }
            clearTimeout(serverResponsive)
            // Check for a change in the data.
            let dataHasChanged = false
            if (
              cached !== undefined &&
              cached.data.badgeData.text[1] !== badgeData.text[1]
            ) {
              dataHasChanged = true
            }
            // Add format to badge data.
            badgeData.format = format
            // Update information in the cache.
            const updatedCache = {
              reqs: cached ? cached.reqs + 1 : 1,
              dataChange: cached
                ? cached.dataChange + (dataHasChanged ? 1 : 0)
                : 1,
              time: +reqTime,
              interval: cacheInterval,
              data: { format, badgeData },
            }
            requestCache.set(cacheIndex, updatedCache)
            if (!cachedVersionSent) {
              const svg = makeBadge(badgeData)
              setCacheHeadersOnResponse(ask.res, badgeData.cacheLengthSeconds)
              makeSend(format, ask.res, end)(svg)
            }
          }
docs: eslint-disable-next-line mocha/prefer-arrow-callback