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:
Adel Gadllah 2009-10-05 17:59:33 +02:00
parent 2f6c951997
commit edb50d5dc7

View File

@ -39,6 +39,6 @@ function format() {
default:
throw new Error('Unsupported conversion character %' + genericGroup);
}
return ""; // Suppress warning
});
}