drop unused setDefault, ignore error handler coverage

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-08-16 19:57:20 +02:00
parent 9eca415212
commit 9530b5214e
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 2 additions and 5 deletions

View File

@ -11,6 +11,7 @@ const App = ({ghc, schema}) => {
const router = new JoiRouter()
app.on('error', (err, ctx) => {
/* istanbul ignore next */
console.error('server error', err, ctx)
})

View File

@ -16,8 +16,4 @@ const extractArchiveBuilds = (builds) => {
return {visible, archived}
}
const setDefault = (obj, prop, deflt) => {
return obj.hasOwnProperty(prop) ? obj[prop] : (obj[prop] = deflt);
}
module.exports = { extractArchiveBuilds, setDefault }
module.exports = { extractArchiveBuilds }