Skip to content

Commit 8300377

Browse files
committed
remove LINQ usage
1 parent b72c6ab commit 8300377

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Packages/com.unity.inputsystem/InputSystem/Editor/InputSystemPluginControl.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#if UNITY_2021_1_OR_NEWER
22
using System;
3-
using System.Linq;
43
using NUnit.Framework;
54
using UnityEditor;
65

@@ -46,7 +45,11 @@ private static void CheckForExtension()
4645
static bool BuildTargetNeedsPlugin()
4746
{
4847
BuildTarget target = EditorUserBuildSettings.activeBuildTarget;
49-
return !TargetNoPluginNeeded.Contains(target);
48+
foreach (var platform in TargetNoPluginNeeded)
49+
{
50+
if (platform == target) return true;
51+
}
52+
return false;
5053
}
5154

5255
private const string PlugInName = "com.unity.inputsystem.";

0 commit comments

Comments
 (0)