Skip to content

Commit 27cec3e

Browse files
committed
Code formatting
1 parent f56e2b2 commit 27cec3e

File tree

4 files changed

+19
-55
lines changed

4 files changed

+19
-55
lines changed

src/Data.psd1

Lines changed: 16 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,20 @@
11
@{
22
Releases = @(
3-
@{ Version = "1.15.0"; Assets = @(
4-
@{ Platform = "Windows"; File = "hashlink-1.15.0-win.zip" }
5-
)}
6-
@{ Version = "1.14.0"; Assets = @(
7-
@{ Platform = "Windows"; File = "hashlink-1.14.0-win.zip" }
8-
)}
9-
@{ Version = "1.13.0"; Assets = @(
10-
@{ Platform = "Windows"; File = "hashlink-1.13.0-win.zip" }
11-
)}
12-
@{ Version = "1.12.0"; Assets = @(
13-
@{ Platform = "Windows"; File = "hl-1.12.0-win.zip" }
14-
)}
15-
@{ Version = "1.11.0"; Assets = @(
16-
@{ Platform = "Windows"; File = "hl-1.11.0-win.zip" }
17-
)}
18-
@{ Version = "1.10.0"; Assets = @(
19-
@{ Platform = "Windows"; File = "hl-1.10.0-win.zip" }
20-
)}
21-
@{ Version = "1.9.0"; Assets = @(
22-
@{ Platform = "Windows"; File = "hl-1.9.0-win.zip" }
23-
)}
24-
@{ Version = "1.8.0"; Assets = @(
25-
@{ Platform = "Windows"; File = "hl-1.8.0-win.zip" }
26-
)}
27-
@{ Version = "1.7.0"; Assets = @(
28-
@{ Platform = "Windows"; File = "hl-1.7.0-win.zip" }
29-
)}
30-
@{ Version = "1.6.0"; Assets = @(
31-
@{ Platform = "Windows"; File = "hl-1.6.0-win.zip" }
32-
@{ Platform = "Linux"; File = "hl-1.6.0-linux.tgz" }
33-
)}
34-
@{ Version = "1.5.0"; Assets = @(
35-
@{ Platform = "Windows"; File = "hl-1.5.0-win.zip" }
36-
@{ Platform = "Linux"; File = "hl-1.5.0-linux.tgz" }
37-
)}
38-
@{ Version = "1.4.0"; Assets = @(
39-
@{ Platform = "Windows"; File = "hl-1.4-win.zip" }
40-
)}
41-
@{ Version = "1.3.0"; Assets = @(
42-
@{ Platform = "Windows"; File = "hl-1.3-win32.zip" }
43-
@{ Platform = "MacOS"; File = "hl-1.3-osx32.zip" }
44-
)}
45-
@{ Version = "1.2.0"; Assets = @(
46-
@{ Platform = "Windows"; File = "hl-1.2-win32.zip" }
47-
@{ Platform = "MacOS"; File = "hl-1.2-osx.zip" }
48-
)}
49-
@{ Version = "1.1.0"; Assets = @(
50-
@{ Platform = "Windows"; File = "hl-1.1-win32.zip" }
51-
)}
52-
@{ Version = "1.0.0"; Assets = @(
53-
@{ Platform = "Windows"; File = "hl-1.0-win32.zip" }
54-
)}
3+
@{ Version = "1.15.0"; Assets = , @{ Platform = "Windows"; File = "hashlink-1.15.0-win.zip" } }
4+
@{ Version = "1.14.0"; Assets = , @{ Platform = "Windows"; File = "hashlink-1.14.0-win.zip" } }
5+
@{ Version = "1.13.0"; Assets = , @{ Platform = "Windows"; File = "hashlink-1.13.0-win.zip" } }
6+
@{ Version = "1.12.0"; Assets = , @{ Platform = "Windows"; File = "hl-1.12.0-win.zip" } }
7+
@{ Version = "1.11.0"; Assets = , @{ Platform = "Windows"; File = "hl-1.11.0-win.zip" } }
8+
@{ Version = "1.10.0"; Assets = , @{ Platform = "Windows"; File = "hl-1.10.0-win.zip" } }
9+
@{ Version = "1.9.0"; Assets = , @{ Platform = "Windows"; File = "hl-1.9.0-win.zip" } }
10+
@{ Version = "1.8.0"; Assets = , @{ Platform = "Windows"; File = "hl-1.8.0-win.zip" } }
11+
@{ Version = "1.7.0"; Assets = , @{ Platform = "Windows"; File = "hl-1.7.0-win.zip" } }
12+
@{ Version = "1.6.0"; Assets = @{ Platform = "Windows"; File = "hl-1.6.0-win.zip" }, @{ Platform = "Linux"; File = "hl-1.6.0-linux.tgz" } }
13+
@{ Version = "1.5.0"; Assets = @{ Platform = "Windows"; File = "hl-1.5.0-win.zip" }, @{ Platform = "Linux"; File = "hl-1.5.0-linux.tgz" } }
14+
@{ Version = "1.4.0"; Assets = , @{ Platform = "Windows"; File = "hl-1.4-win.zip" } }
15+
@{ Version = "1.3.0"; Assets = @{ Platform = "Windows"; File = "hl-1.3-win32.zip" }, @{ Platform = "MacOS"; File = "hl-1.3-osx32.zip" } }
16+
@{ Version = "1.2.0"; Assets = @{ Platform = "Windows"; File = "hl-1.2-win32.zip" }, @{ Platform = "MacOS"; File = "hl-1.2-osx.zip" } }
17+
@{ Version = "1.1.0"; Assets = , @{ Platform = "Windows"; File = "hl-1.1-win32.zip" } }
18+
@{ Version = "1.0.0"; Assets = , @{ Platform = "Windows"; File = "hl-1.0-win32.zip" } }
5519
)
5620
}

src/Main.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function Get-Release {
4545
)
4646

4747
process {
48-
$Version -in @("*", "Latest") ? [Release]::Latest() : [Release]::Get($Version)
48+
$Version -in "*", "Latest" ? [Release]::Latest() : [Release]::Get($Version)
4949
}
5050
}
5151

test/Main.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Describe "Main" {
3838
(Find-HashLinkRelease "<=1.10")?.Version | Should -Be "1.10.0"
3939
}
4040

41-
It "should throw if the version constraint is invalid" -TestCases @(@{ Version = "abc" }, @{ Version = "?1.10" }) {
41+
It "should throw if the version constraint is invalid" -TestCases @{ Version = "abc" }, @{ Version = "?1.10" } {
4242
{ Find-HashLinkRelease $version } | Should -Throw
4343
}
4444
}

test/Release.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Describe "Release" {
8888
[Release]::Find("<=1.10")?.Version | Should -Be "1.10.0"
8989
}
9090

91-
It "should throw if the version constraint is invalid" -TestCases @(@{ Version = "abc" }, @{ Version = "?1.10" }) {
91+
It "should throw if the version constraint is invalid" -TestCases @{ Version = "abc" }, @{ Version = "?1.10" } {
9292
{ [Release]::Find($version) } | Should -Throw
9393
}
9494
}

0 commit comments

Comments
 (0)