Skip to content

Commit 51c676d

Browse files
committed
PD-0000 prettier
1 parent 861b769 commit 51c676d

2 files changed

Lines changed: 717 additions & 955 deletions

File tree

src/assets/print-view/fetch-orcid.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -927,9 +927,7 @@ async function fetchOrcidRecord(orcidId) {
927927
}
928928
}
929929
if (!response.ok) {
930-
throw new Error(
931-
`Failed to fetch ORCID record (${response.status}).`
932-
)
930+
throw new Error(`Failed to fetch ORCID record (${response.status}).`)
933931
}
934932

935933
const recordJson = await response.json()
@@ -956,10 +954,7 @@ async function loadRecord(orcidId) {
956954
message.className = 'error'
957955
message.textContent = error.message
958956
cvRoot.appendChild(message)
959-
showStatus(
960-
`Could not load ${orcidId}.`,
961-
'error'
962-
)
957+
showStatus(`Could not load ${orcidId}.`, 'error')
963958
cvRoot.setAttribute('aria-busy', 'false')
964959
}
965960
}

0 commit comments

Comments
 (0)