Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor duplicate code in src/messaging/data.js #92

Open
wants to merge 11 commits into
base: f24
Choose a base branch
from

Commits on Aug 29, 2024

  1. Refactor: Remove duplicated code blocks in messaging logic

    Consolidated identical code blocks in the conditional structure of src/messaging/data.js to improve maintainability. The repeated assignment of message.newSet = true was refactored into a single condition to reduce redundancy and enhance code clarity.
    jdufitum committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    4e010ad View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Configuration menu
    Copy the full SHA
    b037b0d View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. i refactored the code in src/messaging/data.js to remove the duplicat…

    …e. I also added the original contents of the file widgets.js
    jdufitum committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    41cda07 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5bab71c View commit details
    Browse the repository at this point in the history
  3. i enhanced the code again by removing duplicates and also added new c…

    …omments from line 81 to 90
    jdufitum committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    2d4cf1e View commit details
    Browse the repository at this point in the history
  4. i refactored the code by removing the duplicate code block from line …

    …84 to line 91 of the file data.js in the src/messaging
    jdufitum committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    09324ab View commit details
    Browse the repository at this point in the history
  5. i changed the syntax code and i refactored the code by removing the …

    …duplicate code block from line 84 to line 91 of the file data.js in the src/messaging
    jdufitum committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    e2d7852 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    422ec04 View commit details
    Browse the repository at this point in the history
  7. I removed the duplicate code from line 83 to 89 of the file data.js. …

    …added comments and tested the new code chunck
    jdufitum committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    f6c8d81 View commit details
    Browse the repository at this point in the history
  8. fix: correct indentation in data.js

    - Adjusted indentation levels to match the expected number of tabs.
    - Ensured consistent formatting for better readability and maintainability.
    
    Affected lines:
    - Line 84: Increased indentation from 3 tabs to 4 tabs.
    - Line 89: Increased indentation from 4 tabs to 5 tabs.
    - Line 92: Increased indentation from 5 tabs to 6 tabs.
    - Line 93: Increased indentation from 4 tabs to 5 tabs.
    - Line 94: Increased indentation from 3 tabs to 4 tabs.
    - Line 95: Increased indentation from 3 tabs to 4 tabs.
    jdufitum committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    2f727cb View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7e5d83d View commit details
    Browse the repository at this point in the history