Skip to content

Commit

Permalink
Merge pull request #314 from alphagov/remove-console-logs
Browse files Browse the repository at this point in the history
Remove console log for the file path
  • Loading branch information
robinwhittleton authored Nov 21, 2016
2 parents a6eb274 + e8fdbdc commit 1de96fc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ exports.matchRoutes = function (req, res) {

exports.matchMdRoutes = function (req, res) {
var docsPath = '/../docs/documentation/'
var filePath = path.join(__dirname, docsPath, req.params[0] + '.md')
console.log('file path is:', filePath)
if (fs.existsSync(path.join(__dirname, docsPath, req.params[0] + '.md'), 'utf8')) {
var doc = fs.readFileSync(path.join(__dirname, docsPath, req.params[0] + '.md'), 'utf8')
var html = marked(doc)
Expand Down

0 comments on commit 1de96fc

Please sign in to comment.