Skip to content

Commit

Permalink
Use 'return' explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
niheaven committed Apr 10, 2024
1 parent 27687dc commit 32d941e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/database.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function New-ScoopDB ([switch]$PassThru) {
$tableCommand.ExecuteNonQuery() | Out-Null
$tableCommand.Dispose()
if ($PassThru) {
$db
return $db
} else {
$db.Dispose()
}
Expand Down

0 comments on commit 32d941e

Please sign in to comment.