Skip to content

Commit 0be2ce5

Browse files
committed
refactor: Remvoed unneeded variable
1 parent ad4ad59 commit 0be2ce5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

content.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ const findCompanyName = (fullName) => {
104104

105105
const experienceTitleSelector = 'div.mr1 span[aria-hidden="true"]',
106106
experienceSubtitleSelector = 'span.t-14:not(.t-black--light):first-of-type span[aria-hidden="true"]',
107-
experiences = document.querySelector('section #experience').parentElement,
108-
latestCompany = experiences.querySelector('li'),
107+
latestCompany = document.querySelector('section #experience').parentElement.querySelector('li'),
109108
changedRoles = latestCompany.querySelector('.pvs-entity__caption-wrapper').textContent.trim().indexOf(' · ') === -1,
110109
latestCompanyName = changedRoles ?
111110
latestCompany.querySelector(experienceTitleSelector).textContent.trim() :

0 commit comments

Comments
 (0)