Prettier everything up
This commit is contained in:
@ -1,8 +1,11 @@
|
||||
function checkBlacklist(blacklist) {
|
||||
return function (req, res, next) {
|
||||
return function(req, res, next) {
|
||||
// Do not allow packages that have been blacklisted.
|
||||
if (blacklist.includes(req.packageName)) {
|
||||
res.status(403).type('text').send(`Package "${req.packageName}" is blacklisted`)
|
||||
res
|
||||
.status(403)
|
||||
.type('text')
|
||||
.send(`Package "${req.packageName}" is blacklisted`)
|
||||
} else {
|
||||
next()
|
||||
}
|
||||
|
Reference in New Issue
Block a user