Skip to content

Commit 31463b3

Browse files
committed
Removed the finally block and set prodName to null when exception is thrown
1 parent d5d5ce1 commit 31463b3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@ class UnityProjectInstance {
133133
Write-Warning -Message "An Exception was caught!"
134134
Write-Warning -Message "Exception Type: $($_.Exception.GetType().FullName)"
135135
Write-Warning -Message "Exception Message: $($_.Exception.Message)"
136-
}
137-
finally{
138-
$prodName = ""
136+
$prodName = $null
139137
}
140138

141139
$this.Path = $path

0 commit comments

Comments
 (0)