Skip to content

Commit

Permalink
refactor: Removed ? from response.text()
Browse files Browse the repository at this point in the history
  • Loading branch information
zoemaas committed Jan 9, 2025
1 parent 9bebc10 commit 1217bb2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ export class DidAuthSiopOpAuthenticator implements IAgentPlugin {
const contentType = response?.headers.get('content-type') || ''
let responseBody: any = null

const text = await response?.text()
const text = await response.text()
if (text) {
responseBody = contentType.includes('application/json') || text.startsWith('{') ? JSON.parse(text) : text
}
Expand Down

0 comments on commit 1217bb2

Please sign in to comment.