Skip to content

Commit a8c750f

Browse files
committed
Remove console statements
1 parent d31287c commit a8c750f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: resources/js/functions.js

-7
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ $('#scaladex-search').autocomplete({
137137
},
138138
noCache: true,
139139
onSelect: function (suggestion) {
140-
console.log(suggestion);
141140
window.open(scaladexUrl(suggestion.data), '_blank');
142141
},
143142
formatResult: function(suggestion){
@@ -226,7 +225,6 @@ $(document).ready(function() {
226225
editor.refresh();
227226

228227
function run(){
229-
console.log("run");
230228
var scastieBaseUrl = "https://scastie.scala-lang.org";
231229

232230
$.ajax(
@@ -333,9 +331,6 @@ $(document).ready(function() {
333331
// filter out extra ajax info
334332
return data;
335333
}, function (jqXHR, textStatus, errorThrown) {
336-
// log the error to the console
337-
console.error("Couldn't load training feed " + url + " : " + textStatus, errorThrown);
338-
339334
// recover so we can keep processing
340335
return [];
341336
});
@@ -356,7 +351,6 @@ $(document).ready(function() {
356351
return training.when >= new Date();
357352
})
358353
}, function (error) {
359-
console.error("Couldn't parse our training data", error);
360354
// if our data is bad recover with an empty array
361355
return [];
362356
});
@@ -389,7 +383,6 @@ $(document).ready(function() {
389383

390384
return flattenedTrainings;
391385
}, function (error) {
392-
console.error("Couldn't parse Lightbend training data", error);
393386
// if our data is bad recover with an empty array
394387
return [];
395388
});

0 commit comments

Comments
 (0)