Skip to content

Commit 33a4bbb

Browse files
authoredAug 24, 2021
Merge pull request #319 from cf12/master
Fix dangling parenthesis
2 parents 425251f + af0dc0f commit 33a4bbb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed
 

‎README.md

-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ Calling `needle()` directly returns a Promise. Besides `method` and `url`, all p
149149
needle('get', 'http://some.url.com')
150150
.then(function(resp) { console.log(resp.body) })
151151
.catch(function(err) { console.error(err) })
152-
})
153152
```
154153

155154
Except from the above, all of Needle's request methods return a Readable stream, and both `options` and `callback` are optional. If passed, the callback will return three arguments: `error`, `response` and `body`, which is basically an alias for `response.body`.

0 commit comments

Comments
 (0)
Please sign in to comment.