Skip to content

Commit 3859f6f

Browse files
committed
consistent indentation
1 parent 4e1918d commit 3859f6f

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

scripts/update.ps1

+14-14
Original file line numberDiff line numberDiff line change
@@ -130,33 +130,33 @@ function Fetch-DownloadUrl {
130130
continue
131131
}
132132

133-
# Skip some download links as we're not interested in them
133+
# Skip some download links as we're not interested in them
134134
if ( $a.browser_download_url -ilike "*_symbols*" ) {
135135
continue
136136
}
137137

138138
$score = Match-Filenames $url $a.browser_download_url
139139

140-
# Skip links that don't match or are less similar
140+
# Skip links that don't match or are less similar
141141
if ( ($score -eq 0) -or ($score -lt $charCount) ) {
142142
continue
143143
}
144144

145-
# If we reach the same download link as we have
145+
# If we reach the same download link as we have
146146
if ( $score -eq [System.IO.Path]::GetFileName($url).Length ) {
147147
}
148148

149149
$charCount = $score
150150
$downloadLinks.Add($a.browser_download_url)
151151
}
152152

153-
# If at least one download link was found, don't continue with older releases
153+
# If at least one download link was found, don't continue with older releases
154154
if ( $downloadLinks.Length -gt 0 ) {
155155
break :loop
156156
}
157157
}
158158

159-
# Special case for archive downloads of repository
159+
# Special case for archive downloads of repository
160160
if (($null -eq $downloadLinks) -Or (-Not $downloadLinks)) {
161161
if ((($p | % {$_.Trim('/')}) -Contains "archive") -And $info[0].tag_name) {
162162
for ($i = 0; $i -lt $p.Length; $i++) {
@@ -207,7 +207,7 @@ $sources = Get-Content $sourcesPath | Out-String | ConvertFrom-Json
207207
foreach ($s in $sources) {
208208
Write-Verbose "Updating sources link for $($s.name)..."
209209

210-
Write-Verbose "Old Link: $($s.url)"
210+
Write-Verbose "Old Link: $($s.url)"
211211

212212
$downloadUrl = Fetch-DownloadUrl $s.url
213213

@@ -236,13 +236,13 @@ foreach ($s in $sources) {
236236

237237
Write-Verbose "Version: $version"
238238

239-
if ( $s.version -ne $version ) {
240-
# if ( ([System.Version] $s.version) -gt ([System.Version] $version) ) {
241-
# throw "The current version $($s.version) is already newer than the found version $version!"
242-
# }
239+
if ( $s.version -ne $version ) {
240+
# if ( ([System.Version] $s.version) -gt ([System.Version] $version) ) {
241+
# throw "The current version $($s.version) is already newer than the found version $version!"
242+
# }
243243

244-
$count++
245-
}
244+
$count++
245+
}
246246

247247
$s.url = $downloadUrl
248248
$s.version = $version
@@ -251,8 +251,8 @@ foreach ($s in $sources) {
251251
$sources | ConvertTo-Json | Set-Content $sourcesPath
252252

253253
if ($count -eq 0) {
254-
Write-Host -ForegroundColor yellow "No new releases were found."
255-
return
254+
Write-Host -ForegroundColor yellow "No new releases were found."
255+
return
256256
}
257257

258258
if ( $Env:APPVEYOR -eq 'True' ) {

0 commit comments

Comments
 (0)