Skip to content

Commit

Permalink
Merge pull request #80 from theohbrothers/refactor/entrypoint-simplif…
Browse files Browse the repository at this point in the history
…y-error-handling-in-invoke-psmodulepublisher

Refactor (entrypoint): Simplify error handling in `Invoke-PSModulePublisher`
  • Loading branch information
joeltimothyoh committed May 31, 2024
2 parents 67c563f + 00d0243 commit fdcd850
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 fdcd850

Please sign in to comment.