Skip to content

Commit 2cc0fd2

Browse files
committed
Fix analyzer warning
1 parent 33d2591 commit 2cc0fd2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/linker/Linker/Driver.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,11 +809,10 @@ protected bool AddCustomStep (Pipeline pipeline, string arg)
809809
if (!TryGetCustomAssembly (ref arg, out Assembly custom_assembly))
810810
return false;
811811

812-
int pos = arg.IndexOf (":");
813812
string customStepName;
814813
string targetName = null;
815814
bool before = false;
816-
if (pos == -1) {
815+
if (!arg.Contains (":")) {
817816
customStepName = arg;
818817
} else {
819818
string[] parts = arg.Split (':');

0 commit comments

Comments
 (0)