Permalink
Browse files

use path.join instead of string concatenating

  • Loading branch information...
MSNexploder committed Sep 4, 2011
1 parent db07565 commit 604777e229797a772a23789267376e0251e3d16d
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/inflect/version.coffee
@@ -1,3 +1,5 @@
+path = require 'path'
+
# version information
-exports.package = JSON.parse(require("fs").readFileSync(__dirname + "/../../package.json"))
+exports.package = JSON.parse(require('fs').readFileSync(path.join(__dirname, '/../../package.json')))
exports.version = exports.package.version

0 comments on commit 604777e

Please sign in to comment.