Skip to content

Commit d829216

Browse files
AWolf81Rokt33r
authored andcommitted
Remove duplicated if
1 parent 1cf6f3b commit d829216

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

browser/components/MarkdownPreview.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,8 +1126,6 @@ class MarkdownPreview extends React.Component {
11261126
const isStartWithHash = rawHref[0] === '#'
11271127
const { href, hash } = parser
11281128

1129-
if (!rawHref) return // not checked href because parser will create file://... string for [empty link]()
1130-
11311129
const linkHash = hash === '' ? rawHref : hash // needed because we're having special link formats that are removed by parser e.g. :line:10
11321130

11331131
const extractIdRegex = /file:\/\/.*main.?\w*.html#/ // file://path/to/main(.development.)html

0 commit comments

Comments
 (0)