Minor simplification.

Change-Id: Ic9eaedbf1334825f9d4ce8b58a2fdeefeec3f327
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2SummaryPanel.js b/web/gui/src/main/webapp/app/view/topo2/topo2SummaryPanel.js
index db82ae7..682daac 100644
--- a/web/gui/src/main/webapp/app/view/topo2/topo2SummaryPanel.js
+++ b/web/gui/src/main/webapp/app/view/topo2/topo2SummaryPanel.js
@@ -81,12 +81,7 @@
             verb = on ? 'Show' : 'Hide';
 
         flash.flash(verb + ' Summary Panel');
-
-        if (on) {
-            wss.sendEvent('requestSummary');
-        } else {
-            wss.sendEvent('cancelSummary');
-        }
+        wss.sendEvent(on ? 'requestSummary' : 'cancelSummary');
     }
 
     function destroy() {