From 31e47ec8f3c637576616d491a7019f2c044948c5 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 1 Jun 2016 16:40:52 +0200 Subject: [PATCH] Try to satisfy scrutinizer --- mail/js/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 32b3f8bebf..3e5ff5c08c 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -385,8 +385,10 @@ app.classes.mail = AppJS.extend( case 'add': tree.refreshItem(0); // refresh root break; + default: // null } } + return undefined; }, /** @@ -4739,7 +4741,7 @@ app.classes.mail = AppJS.extend( /** * Window title getter function in order to set the window title * - * @returns {string} window title + * @returns {string|undefined} window title */ getWindowTitle: function () { @@ -4755,6 +4757,7 @@ app.classes.mail = AppJS.extend( if (widget) return widget.get_value(); break; } + return undefined; }, /**