Skip to content

Commit

Permalink
Style: Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
plibither8 committed Jun 10, 2019
1 parent d3faeca commit de4b5ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/features/key-bindings-on-items.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {getUrlParams} from '../libs/utils';

function init(metadata) {
const {options, path} = metadata;
const focusClass = '__rhn__focussed-item';

const isCommentList = paths.comments.includes(path);

Expand Down
3 changes: 2 additions & 1 deletion src/features/show-similar-submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ function getSimilarSubmissions(storyLink, metadata) {
}

for (const result of rawResults) {
if (result.objectID.toString() === metadata.item.id) {
// eslint-disable-next-line eqeqeq
if (result.objectID == metadata.item.id) {
continue;
}

Expand Down
3 changes: 2 additions & 1 deletion src/libs/initialise.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ const getMetadata = new Promise(async resolve => {
if (metadata.item.isItem) {
metadata.item.id = getUrlParams('id');
if (metadata.item.id) {
const itemData = await getItemInfo(metadata.item.id);
metadata.item = {
...metadata.item,
...await getItemInfo(metadata.item.id)
...itemData
};
}
}
Expand Down

0 comments on commit de4b5ec

Please sign in to comment.