Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions PSDepend/Public/Get-Dependency.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ function Get-Dependency {
# It doesn't look like a git repo, and simple syntax: PSGalleryModule
elseif( $DependencyHash -is [string] -and
$Dependency -notmatch '/' -and
-not $DependencyType -or
$DependencyType -eq 'PSGalleryModule') {
(-not $DependencyType -or
$DependencyType -eq 'PSGalleryModule')) {
[PSCustomObject]@{
PSTypeName = 'PSDepend.Dependency'
DependencyFile = $DependencyFile
Expand All @@ -284,8 +284,8 @@ function Get-Dependency {
elseif($DependencyHash -is [string] -and
$Dependency -match '/' -and
$Dependency.split('/').count -eq 2 -and
-not $DependencyType -or
$DependencyType -eq 'GitHub') {
(-not $DependencyType -or
$DependencyType -eq 'GitHub')) {
[PSCustomObject]@{
PSTypeName = 'PSDepend.Dependency'
DependencyFile = $DependencyFile
Expand All @@ -308,8 +308,8 @@ function Get-Dependency {
# It looks like a git repo, and simple syntax: Git
elseif($DependencyHash -is [string] -and
$Dependency -match '/' -and
-not $DependencyType -or
$DependencyType -eq 'Git' ) {
(-not $DependencyType -or
$DependencyType -eq 'Git')) {
[PSCustomObject]@{
PSTypeName = 'PSDepend.Dependency'
DependencyFile = $DependencyFile
Expand Down
Loading