From 7e9b8160a8a4f1cb9624c5932069e7c917b96911 Mon Sep 17 00:00:00 2001 From: Richard Lobb Date: Thu, 21 Mar 2024 19:40:25 +1300 Subject: [PATCH] Fix silly grunt error objecting to multiple blank lines and fix warning message that cookie file does not exist when attempting to delete it. --- classes/jobesandbox.php | 2 +- tests/behat/ace_scratchpad_compatibility.feature | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/jobesandbox.php b/classes/jobesandbox.php index 239544bb..b63c2d68 100644 --- a/classes/jobesandbox.php +++ b/classes/jobesandbox.php @@ -233,7 +233,7 @@ public function execute($sourcecode, $language, $input, $files = null, $params = } // Delete the cookie file. - unlink($cookiefile); + @unlink($cookiefile); $runresult = []; $runresult['sandboxinfo'] = [ diff --git a/tests/behat/ace_scratchpad_compatibility.feature b/tests/behat/ace_scratchpad_compatibility.feature index 0a36b15d..9c10e433 100644 --- a/tests/behat/ace_scratchpad_compatibility.feature +++ b/tests/behat/ace_scratchpad_compatibility.feature @@ -23,7 +23,6 @@ Feature: Ace UI convert to Scratchpad UI questions with one click | questioncategory | qtype | name | | Test questions | coderunner | Square function | - When I am on the "Square function" "core_question > edit" page logged in as teacher1 And I set the following fields to these values: | id_customise | 1 |