Skip to content

Commit fefb8a9

Browse files
committed
Use path.join() to join config paths
1 parent fb7502d commit fefb8a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tasks/csscomb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = function (grunt) {
2020
function getConfigPath(configPath) {
2121
var dirname, parentDirname;
2222

23-
configPath = configPath || process.cwd() + '/.csscomb.json';
23+
configPath = configPath || path.join(process.cwd(), '.csscomb.json');
2424

2525
// If we've finally found a config, return its path:
2626
if (grunt.file.exists(configPath)) {
@@ -41,7 +41,7 @@ module.exports = function (grunt) {
4141

4242
// If there is no config in this directory, go one level up and look for
4343
// a config there:
44-
configPath = parentDirname + '/.csscomb.json';
44+
configPath = path.join(parentDirname, '.csscomb.json');
4545
return getConfigPath(configPath);
4646
}
4747

0 commit comments

Comments
 (0)