         server.serveFile '/test/index.html', 200, {}, request, response
         gutil.log "served #{request.url}"
       else
-        server.serve(request, response, (error, result)->
-          if error then gutil.log "error serving #{request.url}"
-          else gutil.log "served #{request.url}"
+        server.serve(request, response, (error, result) ->
+          if error
+            gutil.log "error serving #{request.url}"
+          else
+            gutil.log "served #{request.url}"
         )
     ).resume()
   ).listen 4242
-  gutil.log "test server started at http://localhost:4242\n"
+  gutil.log 'test server started at http://localhost:4242\n'

        .on 'end', cb
    # return null so that cb fires correctly
    null
        
gulp.task 'coveralls', [ 'test' ], ->
  gulp.src './coverage/lcov.info'
    .pipe coveralls()

    if err? then cb err
    else if files?
      ZUUL_OPTS.push files...
      child = spawn 'zuul', ZUUL_OPTS, { stdio: 'inherit' }
      child.on 'close', (code) ->
        gutil.log 'browser tests completed'
        cb()
  null

gulp.task 'travis', [ 'test', 'coveralls' ], ->

gulp.task 'testwatch', ['test' ], ->
