Skip to content

Commit

Permalink
Fix PSPossibleIncorrectComparisonWithNull warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Crama committed Nov 30, 2020
1 parent 661d19e commit 042feb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/scoop-virustotal.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Function Get-VirusTotalResult($hash, $app) {
}
}
$stats = json_path $result $stats_json_path
if ($stats -eq $null) {
if ($null -eq $stats) {
# Make sure to include '(404)' in the exception as this is the trigger
# for the exception handler to attempt submitting the file for analysis
throw "No data found (404) for $app with hash $hash"
Expand Down

0 comments on commit 042feb5

Please sign in to comment.