remove null return from .is()

This commit is contained in:
TJ Holowaychuk 2013-11-28 12:39:45 -08:00
parent 48601ea7d8
commit 5dfadba96f

View file

@ -513,7 +513,7 @@ module.exports = {
is: function(types){
// no request body
if (!(this.length || 'transfer-encoding' in this.header)) return null;
if (!(this.length || 'transfer-encoding' in this.header)) return;
var ct = this.type;
// no content-type