Skip to content

code-Update head.html#4

Open
0xAlexKorn wants to merge 1 commit intoNexeraProtocol:masterfrom
0xAlexKorn:fix/errr
Open

code-Update head.html#4
0xAlexKorn wants to merge 1 commit intoNexeraProtocol:masterfrom
0xAlexKorn:fix/errr

Conversation

@0xAlexKorn
Copy link

Fix: Removed the declaration of the unused tooltipList variable

Changes

  1. File: _includes/head.html
    • Removed the unused tooltipList variable declaration.

    • Before:

      document.addEventListener("DOMContentLoaded", (event) => {
          const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]');
          const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl));
      });
    • After:

      document.addEventListener("DOMContentLoaded", (event) => {
          const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]');
          [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl));
      });

Purpose

  • Removed the unused tooltipList variable to clean up the code and avoid unnecessary declarations.
  • Enhanced maintainability by ensuring all declared variables serve a purpose.

Context

  1. File: _includes/head.html
    • Issue: Unused tooltipList variable was declared but never utilized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant