bindata icon indicating copy to clipboard operation
bindata copied to clipboard

Refactor: Only lookup without prefix once

Open franzliedke opened this issue 1 year ago • 0 comments

Just a tiny cleanup opportunity I came across while researching for / prototyping a solution for multiple registries (#157).

The loop over search_prefix already checks the variant with the empty string prefix, so the first call to registered? is essentially a duplicate. This way, we can reduce the nesting a bit. 😊

franzliedke avatar Apr 04 '24 18:04 franzliedke