Skip to content

Commit

Permalink
perf(index): immediately return instead of using temp var (#83)
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <frazer.dev@icloud.com>
  • Loading branch information
Fdawgs authored Jan 9, 2025
1 parent 43e2b92 commit 5deadcf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,8 @@ function proxyaddr (req, trust) {
}

const addrs = alladdrs(req, trust)
const addr = addrs[addrs.length - 1]

return addr
return addrs[addrs.length - 1]
}

/**
Expand Down

0 comments on commit 5deadcf

Please sign in to comment.