Permalink
Browse files

[minor] remove duplicate line

  • Loading branch information...
1 parent 1c08f85 commit dee31232b134dd979fd63c031e0aba463b3280dd @Swaagie Swaagie committed Feb 24, 2014
Showing with 2 additions and 5 deletions.
  1. +1 −4 index.js
  2. +1 −1 package.json
View
5 index.js
@@ -110,11 +110,8 @@ function tags(content, n) {
// is returned asynchronously.
//
function read(file, callback) {
- if (!callback) {
- return fileContent(fs.readFileSync(path.resolve(loc, normalize(file)), 'utf8'));
- }
-
file = path.resolve(loc, normalize(file));
+ if (!callback) return fileContent(fs.readFileSync(file, 'utf8'));
fs.readFile(file, 'utf8', function read(error, content) {
callback.apply(this, [error, fileContent(content)]);
View
2 package.json
@@ -2,7 +2,7 @@
"author": "Nodejitsu <support@nodejitsu.com> (http://nodejitsu.com)",
"name": "nodejitsu-handbook",
"description": "A gentle introduction to the art of nodejitsu",
- "version": "0.5.1",
+ "version": "0.6.0",
"subdomain": "handbook",
"homepage": "http://www.nodejitsu.com/docs",
"repository": {

0 comments on commit dee3123

Please sign in to comment.