Skip to content

Commit cdfb5c3

Browse files
aichbauerJPeer264
authored andcommitted
👌 Fix: add ! to if stmt
1 parent 8e18b70 commit cdfb5c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/getConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const getConfig = (altPath) => {
77
const pathString = altPath || path.join(cwd, '.sgcrc');
88
let configObject = json.readToObjSync(pathString);
99

10-
if (configObject) {
10+
if (!configObject) {
1111
// package.json .rcs if no other config is found
1212
configObject = json.readToObjSync(path.join(cwd, 'package.json')).sgc;
1313
}

0 commit comments

Comments
 (0)