Skip to content

Commit

Permalink
refactor(author): rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
mlbrgl committed May 9, 2024
1 parent da436bb commit f90a5a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/model/Gdoc/GdocAuthor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class GdocAuthor extends GdocBase implements OwidGdocAuthorInterface {
}

static create(obj: OwidGdocBaseInterface): GdocAuthor {
const author = new GdocAuthor()
const gdoc = new GdocAuthor()

// We need to prevent obj methods from overriding GdocAuthor methods.
// This happens when createGdocAndInsertIntoDb() passes a GdocBase
Expand All @@ -50,9 +50,9 @@ export class GdocAuthor extends GdocBase implements OwidGdocAuthorInterface {
// that are not defined in the subclass. Note that methods are also
// technically overriden if not defined on the subclass, although we can
// ignore it as this is redundant with inheritance mechanisms.
defaults(author, obj)
defaults(gdoc, obj)

return author
return gdoc
}
protected typeSpecificFilenames(): string[] {
return excludeNullish([this.content["featured-image"]])
Expand Down

0 comments on commit f90a5a9

Please sign in to comment.