Skip to content

Commit

Permalink
fix(core): Remove wrong parenthesis Test-Aria2Enabled and Get-AppFile…
Browse files Browse the repository at this point in the history
…Path
  • Loading branch information
niheaven authored and r15ch13 committed May 1, 2019
1 parent f58fdaa commit 83e4576
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ function Get-AppFilePath {

# normal path to file
$Path = "$(versiondir $App 'current' $false)\$File"
if(Test-Path($Path)) {
if(Test-Path $Path) {
return $Path
}

# global path to file
$Path = "$(versiondir $App 'current' $true)\$File"
if(Test-Path($Path)) {
if(Test-Path $Path) {
return $Path
}

Expand Down Expand Up @@ -220,7 +220,7 @@ function Test-HelperInstalled {
return ![String]::IsNullOrWhiteSpace((Get-HelperPath -Helper $Helper))
}

function Test-Aria2Enabled() {
function Test-Aria2Enabled {
return (Test-HelperInstalled -Helper Aria2) -and (get_config 'aria2-enabled' $true)
}

Expand Down

0 comments on commit 83e4576

Please sign in to comment.