Skip to content

Commit

Permalink
Refactor (entrypoint): Simplify error handling in `Invoke-PSModulePub…
Browse files Browse the repository at this point in the history
…lisher`
  • Loading branch information
joeltimothyoh committed May 31, 2024
1 parent 67c563f commit 00d0243
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/PSModulePublisher/Public/Invoke-PSModulePublisher.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ function Invoke-PSModulePublisher {
"Unspecified PS Repository. The module will not be published." | Write-Warning
}
}catch {
if ($ErrorActionPreference -eq 'Stop') {
throw
}else {
$_ | Write-Error
}
throw
}
}

0 comments on commit 00d0243

Please sign in to comment.