Skip to content

Commit

Permalink
chore: self-review tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kswenson committed Feb 21, 2024
1 parent 185484c commit 8e2010e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/code/providers/provider-interface.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ describe("ProviderInterface", () => {
CloudContent.isClientContent = (inContent: any) => !!inContent?.content?.isContent
expect(CloudContent.isClientContent(docContent)).toBe(true)
const wrappedContent = cloudContentFactory.createEnvelopedCloudContent(docContent)
console.log(wrappedContent)
const unwrappedContent = wrappedContent.getClientContent()
console.log(unwrappedContent)
expect(CloudContent.isClientContent(unwrappedContent)).toBe(true)
expect(unwrappedContent).toEqual(docContent)
})
Expand Down
4 changes: 1 addition & 3 deletions src/code/providers/provider-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,7 @@ class CloudContent {
if (CloudContent.isClientContent(this.content?.content)) return this.content.content
if (CloudContent.isClientContent(this.content)) return this.content
// otherwise, assume that a nested `content` property means we are wrapped
return this.content?.content
? this.content.content
: this.content
return this.content?.content ?? this.content
}

requiresConversion() {
Expand Down

0 comments on commit 8e2010e

Please sign in to comment.