Skip to content

Commit 8c7fd7e

Browse files
minor formatting changes
1 parent a9afbc3 commit 8c7fd7e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ class UnitySetupInstance {
4949
[string]$Path
5050

5151
UnitySetupInstance([string]$path) {
52+
$version = $null
5253
$currentOS = Get-OperatingSystem
5354

5455
# First we'll attempt to search for the version using the ivy.xml definitions for legacy editor compatibility.
5556
$ivy = Get-ChildItem -Path $path -Filter ivy.xml -Recurse -ErrorAction SilentlyContinue -Force | Select-Object -First 1
56-
$version = $null
5757

5858
if ( Test-Path $ivy.FullName ){
5959
[xml]$xmlDoc = Get-Content $ivy.FullName
@@ -65,7 +65,8 @@ class UnitySetupInstance {
6565

6666
foreach ( $module in $modules ) {
6767
$module.DownloadUrl -match "(\d+)\.(\d+)\.(\d+)([fpb])(\d+)" | Out-Null
68-
if( $Matches[0] -ne $null ){
68+
69+
if ( $Matches[0] -ne $null ) {
6970
$version = $Matches[0]
7071
break
7172
}

0 commit comments

Comments
 (0)