From 7582c7e97c2af8e1512ed98b493b68535649ee40 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Fri, 16 Sep 2016 13:22:14 -0700 Subject: [PATCH] small fix to make analyzer happy R=nbosch@google.com Review URL: https://codereview.chromium.org//2344893007 . --- lib/shelf_io.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/shelf_io.dart b/lib/shelf_io.dart index 49910894..58fbd74f 100644 --- a/lib/shelf_io.dart +++ b/lib/shelf_io.dart @@ -116,8 +116,8 @@ Request _fromHttpRequest(HttpRequest request) { headers[k] = v.join(','); }); - onHijack(callback) { - return request.response + void onHijack(callback) { + request.response .detachSocket(writeHeaders: false) .then((socket) => callback(socket, socket)); }