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

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 force-pushed the refac(invoke-wpfinstall.ps1) branch from dba0087 to e77fe1e Compare September 23, 2024 18:42
@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 momcilovicluka force-pushed the refac(invoke-wpfinstall.ps1) branch from e77fe1e to f6c2a9e Compare September 23, 2024 18:45
@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.

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.

3 participants