Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vladar committed Jan 6, 2020
1 parent d7e1aca commit dd04841
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/gatsby-cli/src/util/normalize-windows-cwd.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ module.exports = function normalizeWindowsCwd() {

function driveLetterToUpperCase(path) {
const segments = path.split(`:\\`)
path =
segments.length > 1
? segments.shift().toUpperCase() + `:\\` + segments.join(`:\\`)
: path

return path
return segments.length > 1
? segments.shift().toUpperCase() + `:\\` + segments.join(`:\\`)
: path
}

0 comments on commit dd04841

Please sign in to comment.