Skip to content

Commit 62d3a01

Browse files
committed
No need to check if the item exists before adding it
1 parent 1a1ffca commit 62d3a01

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Xamarin.Android.Build.Tasks/Tasks/GenerateJavaStubs.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,7 @@ void StoreMarshalAssemblyPath (string name, ITaskItem asm)
372372
marshalMethodsAssemblyPaths.Add (name, assemblyPaths);
373373
}
374374

375-
if (!assemblyPaths.Contains (asm.ItemSpec)) {
376-
assemblyPaths.Add (asm.ItemSpec);
377-
}
375+
assemblyPaths.Add (asm.ItemSpec);
378376
}
379377
#endif
380378
}

0 commit comments

Comments
 (0)