This function could use some love for it's formatting. Also if you 'return' from a path you should omit the `else` in the alternative branch. will increase readability _Originally posted by @esterlus in https://github.com/hoprnet/admin-ui/pull/675#discussion_r2065908494_
Also if you 'return' from a path you should omit the
elsein the alternative branch.will increase readability
Originally posted by @esterlus in #675 (comment)