From 8396bd6cf8aac3f00965a14cc9909b6d4937a475 Mon Sep 17 00:00:00 2001 From: Ant Cosentino Date: Thu, 30 Jun 2016 16:18:48 +0200 Subject: [PATCH] hof --- bin/new-route | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/new-route b/bin/new-route index 99b9956..1dda954 100755 --- a/bin/new-route +++ b/bin/new-route @@ -7,9 +7,10 @@ var routeName = process.argv[2] var fs = require('fs') if (!routeName) { - return process.stdout.write('new-route ERROR: No route name given\n', function () { - process.exit() - }) + return process.stdout.write( + 'new-route ERROR: No route name given\n', + process.exit + ) } routeName = routeName.split(' ').join('-')