Skip to content

Commit 6f50b68

Browse files
committed
tiny
1 parent ce02076 commit 6f50b68

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

‎v4-cokapi/Makefile‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@ all:
22
jshint cokapi.js && node cokapi.js
33

44
deps:
5-
npm install \
6-
jshint \
7-
express \
8-
serve-static
5+
npm install express jshint serve-static

‎v4-cokapi/cokapi.js‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,11 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3333
// you'll be executing untrusted code on your server!
3434
var USE_DOCKER_SANDBOX = false;
3535

36+
var assert = require('assert');
3637
var express = require('express');
3738
var serveStatic = require('serve-static');
3839
var app = express();
3940

40-
function assert(cond) {
41-
if (!cond) {
42-
var stack = new Error().stack;
43-
console.error('Assertion error');
44-
console.error(stack);
45-
throw 'Assertion Failure';
46-
}
47-
}
48-
4941
app.use(serveStatic('static/')); // put all static files in here
5042

5143
app.get('/exec_py2', function(req, res) {

0 commit comments

Comments
 (0)