Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Sntai20
Copy link
Collaborator

@Sntai20 Sntai20 commented Mar 3, 2025

Refactor null checks for improved readability using the following command:

Invoke-ScriptAnalyzer -Settings .\Hawk\internal\configurations\PSScriptAnalyzerSettings.psd1 -Path .\install.ps1 -Fix -IncludeRule PSPossibleIncorrectComparisonWithNull

Updated conditional checks in install.ps1 to use $null -ne variable format. This change enhances code clarity and maintainability while preserving existing functionality. The modifications are applied consistently across multiple statements.

Reference

Updated conditional checks in `install.ps1` to use `$null -ne variable` format. This change enhances code clarity and maintainability while preserving existing functionality. The modifications are applied consistently across multiple statements.
@Sntai20 Sntai20 requested a review from jonnybottles March 3, 2025 20:28
@Sntai20 Sntai20 merged commit 08620f9 into personal/ansantan/Code-Quality Mar 3, 2025
1 of 2 checks passed
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.

1 participant