Skip to content

Commit

Permalink
Clean up variable scoping
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Oct 13, 2017
1 parent 07d58f1 commit b6bdaed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/fn/initialise-project-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ module.exports = (projectDir/*, couchUrl*/) => {
};

function createRecursively(dir, layout) {
let k, path;

fs.mkdir(dir);

for(k in layout) {
path = `${dir}/${k}`;
for(const k in layout) {
const path = `${dir}/${k}`;

const val = layout[k];
if(typeof val === 'object') {
Expand Down

0 comments on commit b6bdaed

Please sign in to comment.