From 6f57fe96f2f80772e23f67810354061b1d029e22 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Fri, 28 Jul 2017 16:19:20 +0100 Subject: [PATCH] Add JS doc to indicate that the function may throw an error. --- src/WidgetUtils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WidgetUtils.js b/src/WidgetUtils.js index 0ba52889b1..a61181dd3c 100644 --- a/src/WidgetUtils.js +++ b/src/WidgetUtils.js @@ -21,6 +21,7 @@ export default class WidgetUtils { /* Returns true if user is able to send state events to modify widgets in this room * @param roomId -- The ID of the room to check * @return Boolean -- true if the user can modify widgets in this room + * @throws Error -- specifies the error reason */ static canUserModifyWidgets(roomId) { if (!roomId) {