Skip to content

Commit 32dc64f

Browse files
authored
Added method parameter to be consistent. Fixed extra-config-path-resolution to match config-path-resolution. (#75)
1 parent eb53749 commit 32dc64f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FsOps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ export function readConfig(confPath: string, logsPath: string, configFileName: s
107107
/**
108108
* Reads the extra configuration file, if necessary.
109109
*/
110-
export function readExtraConfig(config: any, confPath: string): Promise<any> {
110+
export function readExtraConfig(config: any, confPath: string, extraConfigFileName: string = 'extra_config.json'): Promise<any> {
111111
return new Promise<any>(resolve => {
112112
if (config.enable_extra_config !== true) {
113113
config.extraConfig = null;
114114
return resolve(config);
115115
}
116116

117-
const pathToExtraConfig = path.join(confPath, 'config', 'extra_config.json');
117+
const pathToExtraConfig = path.join(confPath, extraConfigFileName);
118118

119119
fs.readFile(pathToExtraConfig, (error: ErrnoException | null, data: Buffer) => {
120120
if (error) {

0 commit comments

Comments
 (0)