From edb50d5dc78b70df666ce962ae7924c3a3fd2151 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Mon, 5 Oct 2009 17:59:33 +0200 Subject: [PATCH] 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 --- js/misc/format.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/misc/format.js b/js/misc/format.js index e6848b565..792d306a7 100644 --- a/js/misc/format.js +++ b/js/misc/format.js @@ -39,6 +39,6 @@ function format() { default: throw new Error('Unsupported conversion character %' + genericGroup); } - + return ""; // Suppress warning }); }