[gnome-documents/wip/rishi/onedrive-lo: 3/10] selections: Be more strict about invalid code paths
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/rishi/onedrive-lo: 3/10] selections: Be more strict about invalid code paths
- Date: Thu, 30 Mar 2017 16:55:58 +0000 (UTC)
commit 772b0dee86e653edfbf2bbbf2214597e7eeeea59
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Mar 27 18:11:30 2017 +0200
selections: Be more strict about invalid code paths
src/selections.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/selections.js b/src/selections.js
index f1f8bbe..2d87540 100644
--- a/src/selections.js
+++ b/src/selections.js
@@ -977,7 +977,7 @@ const SelectionToolbar = new Lang.Class({
_onToolbarCollection: function() {
let toplevel = this.get_toplevel();
if (!toplevel.is_toplevel())
- return;
+ throw(new Error('Code should not be reached'));
let dialog = new OrganizeCollectionDialog(toplevel);
dialog.connect('destroy', Lang.bind(this, function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]