bindata
bindata copied to clipboard
Refactor: Only lookup without prefix once
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. 😊