Skip to content

Commit

Permalink
refactor(repo/init): use memCache and return raw config from detectRe…
Browse files Browse the repository at this point in the history
…poFileConfig
  • Loading branch information
Gabriel-Ladzaretti committed Aug 16, 2022
1 parent f17dc80 commit 073406f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/workers/repository/init/merge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export async function detectRepoFileConfig(): Promise<RepoFileConfig> {
}
logger.debug({ config: configFileParsed }, 'package.json>renovate config');
} else {
configFileRaw = (await readLocalFile(configFileName, 'utf8'));
configFileRaw = await readLocalFile(configFileName, 'utf8');
// istanbul ignore if
if (!is.string(configFileRaw)) {
logger.warn({ configFileName }, 'Null contents when reading config file');
Expand Down
2 changes: 1 addition & 1 deletion lib/workers/repository/init/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface RepoConfigError {

export interface RepoFileConfig {
configFileName?: string;
configFileRaw?: string;
configFileRaw?: string | null;
configFileParsed?: any;
configFileParseError?: RepoConfigError;
}
Expand Down

0 comments on commit 073406f

Please sign in to comment.