Skip to content

Commit 2bfdfb0

Browse files
committed
Stabilize build
1 parent 41db34f commit 2bfdfb0

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

WebDriverManager/DriverConfigs/Impl/ChromeConfig.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ private string GetUrl()
3434
#if NETSTANDARD
3535
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
3636
{
37-
var extension = RuntimeInformation.ProcessArchitecture == Architecture.Arm64 ? "_m1" : "";
38-
return $"{BaseVersionPatternUrl}chromedriver_mac64{extension}.zip";
37+
var architectureExtension =
38+
RuntimeInformation.ProcessArchitecture == System.Runtime.InteropServices.Architecture.Arm64
39+
? "_m1"
40+
: "";
41+
return $"{BaseVersionPatternUrl}chromedriver_mac64{architectureExtension}.zip";
3942
}
4043

4144
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
@@ -88,6 +91,7 @@ public virtual string GetMatchingBrowserVersion()
8891
{
8992
throw new Exception("Not able to get chrome version or not installed");
9093
}
94+
9195
var chromeBrowserVersion = VersionHelper.GetVersionWithoutRevision(rawChromeBrowserVersion);
9296
var url = ExactReleaseVersionPatternUrl.Replace("<version>", chromeBrowserVersion);
9397
return GetLatestVersion(url);

WebDriverManager/DriverConfigs/Impl/EdgeConfig.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ public virtual string GetUrl64()
2626
#if NETSTANDARD
2727
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
2828
{
29-
var extension = RuntimeInformation.ProcessArchitecture == Architecture.Arm64 ? "_m1" : "";
30-
return $"{BaseVersionPatternUrl}edgedriver_mac64{extension}.zip";
29+
var architectureExtension =
30+
RuntimeInformation.ProcessArchitecture == System.Runtime.InteropServices.Architecture.Arm64
31+
? "_m1"
32+
: "";
33+
return $"{BaseVersionPatternUrl}edgedriver_mac64{architectureExtension}.zip";
3134
}
3235

3336
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))

WebDriverManager/DriverConfigs/Impl/FirefoxConfig.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ namespace WebDriverManager.DriverConfigs.Impl
1010
{
1111
public class FirefoxConfig : IDriverConfig
1212
{
13-
private const string DownloadUrl = "https://github.com/mozilla/geckodriver/releases/download/v<version>/geckodriver-v<version>-";
13+
private const string DownloadUrl =
14+
"https://github.com/mozilla/geckodriver/releases/download/v<version>/geckodriver-v<version>-";
1415

1516
public virtual string GetName()
1617
{
@@ -81,8 +82,11 @@ private static string GetUrl(Architecture architecture)
8182
#if NETSTANDARD
8283
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
8384
{
84-
var extension = RuntimeInformation.ProcessArchitecture == Architecture.Arm64 ? "-aarch64" : "";
85-
return $"{DownloadUrl}macos{extension}.tar.gz";
85+
var architectureExtension =
86+
RuntimeInformation.ProcessArchitecture == System.Runtime.InteropServices.Architecture.Arm64
87+
? "-aarch64"
88+
: "";
89+
return $"{DownloadUrl}macos{architectureExtension}.tar.gz";
8690
}
8791

8892
return RuntimeInformation.IsOSPlatform(OSPlatform.Linux)

0 commit comments

Comments
 (0)