Skip to content
New issue

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

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

Already on GitHub? # to your account

refac(invoke-wpfinstall.ps1): simplify taskbaritem invocation #2798

Conversation

momcilovicluka
Copy link
Contributor

@momcilovicluka momcilovicluka commented Sep 22, 2024

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • Refactoring
  • Hotfix
  • Security patch
  • UI/UX improvement

Description

Refactor: functions/public/Invoke-WPFInstall.ps1

  • Simplify code and make it shorter

Testing

Not needed

Impact

Make code shorter and easier to read

Issue related to PR

  • Resolves #

Additional Information

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no errors/warnings/merge conflicts.

@momcilovicluka momcilovicluka changed the title refac(invoke-wpfinstall.ps1): remove null assignments and simplify taskbaritem invocation refac(invoke-wpfinstall.ps1): simplify taskbaritem invocation Sep 23, 2024
@momcilovicluka
Copy link
Contributor Author

My apologies. Removing null asignments caused the install/uninstall to not work
This was also a problem in #2797
I will make sure to better test in the future

Copy link
Contributor

@ruxunderscore ruxunderscore left a comment

Choose a reason for hiding this comment

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

Similar to PR #2799's change. Same opinion as there. Just as easy to read, imo, but does shorten it. I approve.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants