commit | a0f260c17f3f066b61fa707198e7790894d4b58e | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch@google.com> | Fri Dec 03 20:39:37 2021 |
committer | GitHub <noreply@github.com> | Fri Dec 03 20:39:37 2021 |
tree | b9c8d6664464dc805bbcc9cbfe0ca2a429463428 | |
parent | 32c990a1a7f73062160b22d144599dca5fffd650 [diff] |
Use URI class over manual string manipulation (#1641) Avoid building URIs manually with brittle strings. This also makes it more clear that the Observatory URI is embedding a path and query string into the fragment, instead of letting it look like part of the URI itself. Pull out `serverUri` as a separate variable and use `!` immediately. If a null shows up this would be a more clear failure than trying to later treat the string`'null'` as a URI.