Skip to content

Commit

Permalink
冗長なコードを削除する
Browse files Browse the repository at this point in the history
  • Loading branch information
AsaiToshiya committed Nov 16, 2023
1 parent 58ee359 commit 84ac54e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@

push(uri) {
this._history =
this._history[this._index]?.replace(/^nostr:/, "") ==
uri.replace(/^nostr:/, "")
this._history[this._index] == uri
? this._history
: [...this._history.slice(0, ++this._index), uri];
},
Expand Down

0 comments on commit 84ac54e

Please sign in to comment.