String formatting: Fix warning
Fix to not trigger a warning like: JS ERROR: !!! WARNING: 'anonymous function does not always return a value' by adding a return ""; at the end of the anonymous function. https://bugzilla.gnome.org/show_bug.cgi?id=595661
This commit is contained in:
parent
2f6c951997
commit
edb50d5dc7
@ -39,6 +39,6 @@ function format() {
|
|||||||
default:
|
default:
|
||||||
throw new Error('Unsupported conversion character %' + genericGroup);
|
throw new Error('Unsupported conversion character %' + genericGroup);
|
||||||
}
|
}
|
||||||
|
return ""; // Suppress warning
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user