GUACAMOLE-346: Simplify style of seek callback invocation.

Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/b41311f1
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/b41311f1
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/b41311f1

Branch: refs/heads/master
Commit: b41311f1ed9567cfe0201571ae8cb96ba2414b99
Parents: 21eadec
Author: Michael Jumper <mjum...@apache.org>
Authored: Sat Jul 15 16:16:26 2017 -0700
Committer: Michael Jumper <mjum...@apache.org>
Committed: Sat Jul 15 16:16:26 2017 -0700

----------------------------------------------------------------------
 .../src/main/webapp/modules/SessionRecording.js               | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/b41311f1/guacamole-common-js/src/main/webapp/modules/SessionRecording.js
----------------------------------------------------------------------
diff --git a/guacamole-common-js/src/main/webapp/modules/SessionRecording.js 
b/guacamole-common-js/src/main/webapp/modules/SessionRecording.js
index d544982..6b74782 100644
--- a/guacamole-common-js/src/main/webapp/modules/SessionRecording.js
+++ b/guacamole-common-js/src/main/webapp/modules/SessionRecording.js
@@ -384,13 +384,10 @@ Guacamole.SessionRecording = function 
SessionRecording(tunnel) {
             if (currentFrame !== index)
                 seekToFrame(index, callback);
 
-            else {
-
-                // Notify that the requested seek has completed
+            // Notify that the requested seek has completed
+            else
                 callback();
 
-            }
-
         }, 0);
 
     };

Reply via email to