lint: fix sonarjs/no-dead-store issues (#23653)
This commit is contained in:
parent
79a3c1618f
commit
ea502d36a9
19 changed files with 17 additions and 76 deletions
|
|
@ -23,7 +23,7 @@ const useStickyScroll = ({
|
|||
return
|
||||
const { height: wrapHeight, top: wrapTop } = wrapDom.getBoundingClientRect()
|
||||
const { top: nextToStickyTop } = stickyDOM.getBoundingClientRect()
|
||||
let scrollPositionNew = ScrollPosition.belowTheWrap
|
||||
let scrollPositionNew: ScrollPosition
|
||||
|
||||
if (nextToStickyTop - wrapTop >= wrapHeight)
|
||||
scrollPositionNew = ScrollPosition.belowTheWrap
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue