checkErrorResponse update default (#1501)

This commit is contained in:
Danial
2018-02-15 23:34:38 +01:00
committed by GitHub
parent 581546d58e
commit 3cb71037fd

View File

@@ -1,9 +1,6 @@
'use strict';
const checkErrorResponse = function(badgeData, err, res, notFoundMessage) {
if (typeof(notFoundMessage) === 'undefined') {
notFoundMessage = 'not found';
}
const checkErrorResponse = function(badgeData, err, res, notFoundMessage = 'not found') {
if (err != null) {
badgeData.text[1] = 'inaccessible';
badgeData.colorscheme = 'red';