Skip to content

fix: remove debug print statements from BookMarkScreen#469

Closed
adityashirsatrao007 wants to merge 1 commit into
andoriyaprashant:mainfrom
adityashirsatrao007:fix/remove-print-bookmark-screen
Closed

fix: remove debug print statements from BookMarkScreen#469
adityashirsatrao007 wants to merge 1 commit into
andoriyaprashant:mainfrom
adityashirsatrao007:fix/remove-print-bookmark-screen

Conversation

@adityashirsatrao007

Copy link
Copy Markdown
Contributor

Description

Removes 3 debug print() statements from the BookMarkScreen widget's FutureBuilder.

Problem

In lib/widgets/book_mark_screen.dart, the FutureBuilder's builder callback contained:

print("working");
print(snapshot.data);
// ... 
print(bookmarks);

These run on every widget rebuild, causing:

Fix

Removed all 3 print() statements. The logic is unchanged.

Related Issue

Fixes #417 (Improved linting and code quality)

Type of Change

  • Bug fix (removing debug code from production)

Checklist

  • No functional changes — only debug code removed
  • Tests pass
  • No lint warnings introduced

Remove 3 production print() statements from BookMarkScreen widget:
- print("working") - debug log on every FutureBuilder rebuild
- print(snapshot.data) - logs bookmark data on every rebuild
- print(bookmarks) - logs Future object when list is empty

These debug logs run on every widget rebuild, degrading performance
and violating the avoid_print lint rule. Fixes #417.
Copilot AI review requested due to automatic review settings May 30, 2026 10:58
@netlify

netlify Bot commented May 30, 2026

Copy link
Copy Markdown

Deploy Preview for aquamarine-kheer-83feda failed. Why did it fail? →

Name Link
🔨 Latest commit 6fc23f8
🔍 Latest deploy log https://app.netlify.com/projects/aquamarine-kheer-83feda/deploys/6a1ac2f523e88e0007f865bb

@github-actions

Copy link
Copy Markdown

Thank you for submitting your pull request! We'll review it as soon as possible.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Removes debug print statements from the bookmark screen's FutureBuilder.

Changes:

  • Removed two print calls used for debugging in BookMarkScreen.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@adityashirsatrao007 adityashirsatrao007 closed this by deleting the head repository Jun 17, 2026
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.

BUG: Improved linting and code quality

2 participants