From 1d9a0e1d3140b4566bc1c6adbf97bf34e727456b Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Fri, 2 May 2014 12:21:55 -0700 Subject: [PATCH] ocd --- lib/request.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/request.js b/lib/request.js index 7c27901..48c7b6a 100644 --- a/lib/request.js +++ b/lib/request.js @@ -259,8 +259,8 @@ module.exports = { */ get idempotent() { - var idempotents = ['GET','HEAD','PUT','DELETE','OPTIONS','TRACE']; - return idempotents.indexOf(this.method) !== -1; + var methods = ['GET', 'HEAD', 'PUT', 'DELETE', 'OPTIONS', 'TRACE']; + return ~methods.indexOf(this.method); }, /**