[gnome-shell] String formatting: Fix warning
- From: Adel Gadllah <agadllah src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] String formatting: Fix warning
- Date: Mon, 5 Oct 2009 16:01:30 +0000 (UTC)
commit edb50d5dc78b70df666ce962ae7924c3a3fd2151
Author: Adel Gadllah <adel gadllah gmail com>
Date: Mon Oct 5 17:59:33 2009 +0200
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/misc/format.js b/js/misc/format.js
index e6848b5..792d306 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
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]