Skip to content

Commit

Permalink
Fix PSScriptAnalyzer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanroie committed Jun 13, 2018
1 parent 6cc9090 commit b4d9571
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Private/Get-Constructor.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Function Get-Constructor {
)
Process {
If ($PSBoundParameters['AsObject']) {
$type.GetConstructors() | ForEach {
$type.GetConstructors() | ForEach-Object {
$object = New-Object PSobject -Property @{
Type = $_.DeclaringType
Parameters = $_.GetParameters()
Expand All @@ -95,9 +95,9 @@ Function Get-Constructor {


} Else {
$Type.GetConstructors() | Select @{
$Type.GetConstructors() | Select-Object @{
Label = "$($type.Name) Constructors"
Expression = {($_.GetParameters() | ForEach {$_.ToString()}) -Join ", "}
Expression = {($_.GetParameters() | ForEach-Object {$_.ToString()}) -Join ", "}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Public/Settings/Get-OPNsenseSetting.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Function Get-OPNsenseSetting {

# Get the Invoke Arguments List
$arglist = $OPNsenseSettingMap.settings.$Module.$Setting.$Command.command
$returntype = $OPNsenseSettingMap.settings.$Module.$Setting.$Command.returntype
#$returntype = $OPNsenseSettingMap.settings.$Module.$Setting.$Command.returntype

# Build Invoke Arguments Splat
$splat = @{};
Expand Down

0 comments on commit b4d9571

Please sign in to comment.