Skip to content

Commit

Permalink
Fix bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok committed Jun 14, 2023
1 parent 0eaa22e commit 6716a1b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/PuppeteerSharp/CustomQueriesManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,8 @@ internal void RegisterCustomQueryHandler(string name, CustomQueryHandler queryHa

if (selector.StartsWith(prefix, StringComparison.OrdinalIgnoreCase))
{
var prefix = $"{kv.Key}{separator}";

if (selector.StartsWith(prefix, StringComparison.OrdinalIgnoreCase))
{
selector = selector.Substring(prefix.Length);
return (selector, kv.Value);
}
selector = selector.Substring(prefix.Length);
return (selector, kv.Value);
}
}
}
Expand Down

0 comments on commit 6716a1b

Please sign in to comment.