Skip to content

Commit

Permalink
remove useless if from status web components
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Jun 23, 2023
1 parent f81b17a commit f2ff806
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions nanopub-display/src/nanopub-status-icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ export class NanopubStatusIcon extends LitElement {
override async connectedCallback() {
super.connectedCallback()

if (this.url.startsWith('https://purl.org/np/')) {
this.url = this.url.replace('https://purl.org/np/', 'http://purl.org/np/')
}
if (this.url.endsWith('.trig')) {
this.url = this.url.slice(0, -5)
}
Expand Down
4 changes: 0 additions & 4 deletions nanopub-display/src/nanopub-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ export class NanopubStatus extends LitElement {
*/
override async connectedCallback() {
super.connectedCallback()
if (this.url.startsWith('https://purl.org/np/')) {
this.url = this.url.replace('https://purl.org/np/', 'http://purl.org/np/')
}

this.status = await getUpdateStatus(this.url)
}

Expand Down

0 comments on commit f2ff806

Please sign in to comment.