checkErrorResponse update default (#1501)
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user