Skip to content

Commit

Permalink
Merge pull request #7 from mixmaxhq/raphaelbs-patch-1
Browse files Browse the repository at this point in the history
fix: reassigning to const variable
  • Loading branch information
raphaelbs committed Aug 23, 2024
2 parents 89adfff + 2f2a136 commit 0001304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = function(robots, {express = require('express')} = {}) {

function render(robots) {
return asArray(robots).map(function(robot) {
const userAgentArray = [];
let userAgentArray = [];
if (Array.isArray(robot.UserAgent)) {
userAgentArray = robot.UserAgent.map(function(userAgent) {
return 'User-agent: ' + userAgent
Expand Down

0 comments on commit 0001304

Please sign in to comment.