Skip to content

Commit

Permalink
Remove unnecessary optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
jhildenbiddle committed Oct 9, 2023
1 parent 86ae787 commit ae94f6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/render/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ export function Render(Base) {
const sidebarToggleEl = dom.getNode('button.sidebar-toggle');

if (hideSidebar) {
sidebarEl?.parentNode?.removeChild(sidebarEl);
sidebarToggleEl?.parentNode?.removeChild(sidebarToggleEl);
sidebarEl?.parentNode.removeChild(sidebarEl);
sidebarToggleEl?.parentNode.removeChild(sidebarToggleEl);

return null;
}
Expand Down

0 comments on commit ae94f6f

Please sign in to comment.