Skip to content

Duplicate Function Declaration solved#96

Merged
FOSSCLUB-LBSITW merged 1 commit into
FOSSCLUB-LBSITW:mainfrom
annrose2277-glitch:hello
Mar 9, 2026
Merged

Duplicate Function Declaration solved#96
FOSSCLUB-LBSITW merged 1 commit into
FOSSCLUB-LBSITW:mainfrom
annrose2277-glitch:hello

Conversation

@annrose2277-glitch
Copy link
Copy Markdown
Contributor

📌 Description

Brief description of what this PR does.
The codebase now contains a single, clean source of truth for fetching grid dimensions, which improves maintainability and ensures
consistent behavior throughout the application.

🔗 Related Issue

Closes: #93


🛠 Changes Made

Removed the first instance of getGridDimensions() located before the rowsSelect and colsSelect declarations.
Kept the second instance located after applyDifficulty(), which correctly uses the cached rowsSelect and colsSelect elements.

📷 Screenshots (if applicable)


✅ Checklist

  • [yes ] I have tested my changes
  • [yes ] My code follows project guidelines
  • [ yes] I have linked the related issue

@github-actions github-actions Bot added bug Something isn't working HackTheStack as a part of hack the stack event level-1 labels Mar 9, 2026
@FOSSCLUB-LBSITW FOSSCLUB-LBSITW merged commit 58afd0b into FOSSCLUB-LBSITW:main Mar 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working HackTheStack as a part of hack the stack event level-1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The "Duplicate Function Declaration" Bug

2 participants