Skip to content

Commit

Permalink
chore: Avoid initializing bytes as null and adjust bytes variable pla…
Browse files Browse the repository at this point in the history
…cement
  • Loading branch information
Dor-bl committed Aug 9, 2023
1 parent ef62737 commit 187527d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ public class AppiumLocalServerLaunchingTest
[OneTimeSetUp]
public void BeforeAll()
{
byte[] bytes = null;

var isWindows = Platform.CurrentPlatform.IsPlatformType(PlatformType.Windows);
var isMacOs = Platform.CurrentPlatform.IsPlatformType(PlatformType.Mac);
var isLinux = Platform.CurrentPlatform.IsPlatformType(PlatformType.Linux);
Expand All @@ -43,6 +41,7 @@ public void BeforeAll()
}
Console.WriteLine(_testIp);

byte[] bytes;
if (isWindows)
{
bytes = Resources.PathToWindowsNode;
Expand Down

0 comments on commit 187527d

Please sign in to comment.