Skip to content

Commit 43113ee

Browse files
committed
fix lint
1 parent 8feda9d commit 43113ee

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

web_src/js/features/repo-issue.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,6 @@ export async function handleReply($el) {
438438

439439
export function initRepoPullRequestReview() {
440440
if (window.location.hash && window.location.hash.startsWith('#issuecomment-')) {
441-
// set scrollRestoration to 'manual' when there is a hash in url, so that the scroll position will not be remembered after refreshing
442-
(history.scrollRestoration != 'manual') && (history.scrollRestoration = 'manual');
443441
const commentDiv = $(window.location.hash);
444442
if (commentDiv) {
445443
// get the name of the parent id
@@ -451,8 +449,8 @@ export function initRepoPullRequestReview() {
451449
$(`#code-comments-${id}`).removeClass('gt-hidden');
452450
$(`#code-preview-${id}`).removeClass('gt-hidden');
453451
$(`#hide-outdated-${id}`).removeClass('gt-hidden');
454-
// if the comment box is folded, expand it
455-
if (ancestorDiffBox.attr('data-folded') && ancestorDiffBox.attr('data-folded') === "true") {
452+
// if the comment box is folded, expand it
453+
if (ancestorDiffBox.attr('data-folded') && ancestorDiffBox.attr('data-folded') === 'true') {
456454
setFileFolding(ancestorDiffBox[0], ancestorDiffBox[0].querySelector('.fold-file'), false);
457455
}
458456
commentDiv[0].scrollIntoView({

0 commit comments

Comments
 (0)