Skip to content

Commit

Permalink
Merge pull request #480 from JemiloII/patch-1
Browse files Browse the repository at this point in the history
Use lodash size function
  • Loading branch information
pgte committed Mar 17, 2016
2 parents cd62565 + ac163ac commit 694c421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ function define(nockDefs) {
} else {
nock = startScope(nscope, options);
// If request headers were specified filter by them.
if (reqheaders !== {}) {
if (_.size(reqheaders) > 0) {
for (var k in reqheaders) {
nock.matchHeader(k, reqheaders[k]);
}
Expand Down

0 comments on commit 694c421

Please sign in to comment.