From f72cd3c9868cc71ae0a559b41b15205540dd51ac Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Sat, 9 Jan 2016 18:16:10 -0800 Subject: [PATCH] Fix remove semi-colon guard Users should be instructed to always use semi-colons --- client/commonFramework/end.js | 2 +- client/commonFramework/execute-challenge-stream.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/commonFramework/end.js b/client/commonFramework/end.js index b28a29e9fb..3948f0aeb2 100644 --- a/client/commonFramework/end.js +++ b/client/commonFramework/end.js @@ -35,7 +35,7 @@ $(document).ready(function() { .flatMap(code => { return common.detectUnsafeCode$(code) .map(() => { - const combinedCode = common.head + '\n;;' + code + '\n;;' + common.tail; + const combinedCode = common.head + code + common.tail; return addLoopProtect(combinedCode); }) diff --git a/client/commonFramework/execute-challenge-stream.js b/client/commonFramework/execute-challenge-stream.js index 29af8f7279..b81de64486 100644 --- a/client/commonFramework/execute-challenge-stream.js +++ b/client/commonFramework/execute-challenge-stream.js @@ -18,7 +18,7 @@ window.common = (function(global) { const originalCode = code; const head = common.arrayToNewLineString(common.head); const tail = common.arrayToNewLineString(common.tail); - const combinedCode = head + '\n;;' + code + '\n;;' + tail; + const combinedCode = head + code + tail; ga('send', 'event', 'Challenge', 'ran-code', common.challengeName);