Skip to content

Commit

Permalink
final clean
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs committed Oct 31, 2023
1 parent d4ed41e commit 2e6cb83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/job/jobHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ export abstract class JobHandler {
@throwIfJobInterupted()
private async prepNextGenBuild(): Promise<void> {
if (this.isbuildNextGen()) {
this._logger.save(this.currJob._id, `prepNextGenBuild.... MMM`);
await this._validator.throwIfBranchNotConfigured(this.currJob);
await this.constructPrefix();
// TODO: Look into moving the generation of manifestPrefix into the manifestJobHandler,
Expand All @@ -252,7 +251,6 @@ export abstract class JobHandler {
this.constructEnvVars();
this.currJob.payload.isNextGen = true;
if (this._currJob.payload.jobType === 'productionDeploy') {
this._logger.save(this.currJob._id, `throwifnotpublishable.... MMM`);
this._validator.throwIfNotPublishable(this._currJob);
}
} else {
Expand Down
1 change: 0 additions & 1 deletion src/repositories/docsetsRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export class DocsetsRepository extends BaseRepository {
if (!res.length) {
const msg = `DocsetsRepository.getRepo - Could not find repo by repoName: ${repoName}`;
this._logger.info(this._repoName, msg);
} else if (res.length > 1 && repoName === MONOREPO_NAME) {
}
return res?.[0];
}
Expand Down
4 changes: 3 additions & 1 deletion src/repositories/repoBranchesRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export class RepoBranchesRepository extends BaseRepository {
if (monorepoDirPath) query['directories.snooty_toml'] = `/${monorepoDirPath}`;
const repo = await this.findOne(
query,
`Mongo Timeout Error: Timedout while retrieving branches for ${repoName}${monorepoDirPath ? monorepoDirPath : ''}`
`Mongo Timeout Error: Timedout while retrieving branches for ${repoName}${
monorepoDirPath ? `/${monorepoDirPath}` : ''
}`
);
// if user has specific entitlements
return repo?.['branches'] ?? [];
Expand Down

0 comments on commit 2e6cb83

Please sign in to comment.