Since ptrToURI is supposed to return the URI for any protocol's ID, what are your thoughts on this approach vs. changing ptrToURI to something like this:
This way you can pass in a URI to default to if none is present from the provided logoPtr, and we don't need to duplicate the conditional protocol !== 0 check
Since
ptrToURI
is supposed to return the URI for any protocol's ID, what are your thoughts on this approach vs. changingptrToURI
to something like this:This way you can pass in a URI to default to if none is present from the provided
logoPtr
, and we don't need to duplicate the conditionalprotocol !== 0
check_Originally posted by @mds1 in https://github.com/dcgtc/dgrants/pull/534#discussion_r758426315_