Skip to content

Commit

Permalink
build: add proper initialization check
Browse files Browse the repository at this point in the history
  • Loading branch information
scolladon committed Sep 11, 2023
1 parent 71da066 commit 7963980
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/post-processor/includeProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ const TAB = '\t'
export default class IncludeProcessor extends BaseProcessor {
protected readonly gitHelper: RepoSetup
protected from: string
protected includeHelper: IgnoreHelper
protected includeHelper!: IgnoreHelper
constructor(work: Work, metadata: MetadataRepository) {
super(work, metadata)
this.gitHelper = new RepoSetup(this.config)
this.from = this.config.from
}

public override async process() {
Expand All @@ -31,7 +32,6 @@ export default class IncludeProcessor extends BaseProcessor {
}

protected async _prepare() {
this.from = this.config.from
const firstSha = await this.gitHelper.getFirstCommitRef()
this.config.from = firstSha

Expand Down
2 changes: 1 addition & 1 deletion src/utils/metadataDiff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default class MetadataDiff {
protected readonly configTo: Config
protected readonly configFrom: Config
protected toContent: any
protected add: Manifest
protected add!: Manifest
constructor(
protected readonly config: Config,
protected readonly metadata: MetadataRepository,
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"esModuleInterop": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"alwaysStrict": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
Expand Down

0 comments on commit 7963980

Please sign in to comment.