Skip to content

Commit

Permalink
Fix debugPreference logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
silverhack committed May 26, 2023
1 parent 7cd95c1 commit 2a3e7cc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/modules/monkeylogger/core/console/Write-Debug.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ Function Write-Debug {
$PSBoundParameters.Add('Debug',$false);
$informationAction = $DebugPreference
}
else{
$DebugPreference = 'Continue'
}
#Check if Debug variable is present
if($null -ne (Get-Variable -Name Debug -ErrorAction Ignore)){
#override default option
Expand Down

0 comments on commit 2a3e7cc

Please sign in to comment.