Skip to content

Commit c5935b1

Browse files
author
Swaagie
committed
[fix] make sure to return contents on sync read
1 parent 3a7ea7a commit c5935b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function Handbook() {
268268
// synchronously by omitting the callback.
269269
//
270270
Handbook.prototype.get = function get(file, callback) {
271-
read.apply(this, arguments);
271+
return read.apply(this, arguments);
272272
};
273273

274274
//

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Nodejitsu <[email protected]> (http://nodejitsu.com)",
33
"name": "nodejitsu-handbook",
44
"description": "A gentle introduction to the art of nodejitsu",
5-
"version": "0.6.1",
5+
"version": "0.6.2",
66
"subdomain": "handbook",
77
"homepage": "http://www.nodejitsu.com/docs",
88
"repository": {

0 commit comments

Comments
 (0)