Skip to content

Commit

Permalink
lint: Automatic variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash258 committed Jul 24, 2020
1 parent d227841 commit f4a5044
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/checkver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ function next($AppName, $Err) {
}

function Invoke-Check {
param([Parameter(Mandatory, ValueFromPipeline)] [System.Management.Automation.PSEventArgs] $Event)
param([Parameter(Mandatory, ValueFromPipeline)] [System.Management.Automation.PSEventArgs] $EventToCheck)

$state = $Event.SourceEventArgs.UserState
$state = $EventToCheck.SourceEventArgs.UserState

debug $state.url
debug $state.regex
Expand All @@ -101,8 +101,8 @@ function Invoke-Check {
$expectedVersion = $json.version
$ver = ''

$page = $Event.SourceEventArgs.Result
$err = $Event.SourceEventArgs.Error
$page = $EventToCheck.SourceEventArgs.Result
$err = $EventToCheck.SourceEventArgs.Error

if (Test-ScoopDebugEnabled) { Join-Path $PWD 'checkver-page.html' | Out-UTF8Content -Content $page }
if ($json.checkver.script) {
Expand Down

0 comments on commit f4a5044

Please sign in to comment.