Skip to content

Commit

Permalink
Fix analyzer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sbomer committed Mar 1, 2021
1 parent 33d2591 commit 2cc0fd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/linker/Linker/Driver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -809,11 +809,10 @@ protected bool AddCustomStep (Pipeline pipeline, string arg)
if (!TryGetCustomAssembly (ref arg, out Assembly custom_assembly))
return false;

int pos = arg.IndexOf (":");
string customStepName;
string targetName = null;
bool before = false;
if (pos == -1) {
if (!arg.Contains (":")) {
customStepName = arg;
} else {
string[] parts = arg.Split (':');
Expand Down

0 comments on commit 2cc0fd2

Please sign in to comment.