Commit 928a0b90 authored by Robert Knight's avatar Robert Knight

Remove unnecessary `uri` local variable

parent c95073a3
...@@ -138,7 +138,7 @@ function groups( ...@@ -138,7 +138,7 @@ function groups(
// to include groups associated with this page. This is retained to determine // to include groups associated with this page. This is retained to determine
// whether we need to re-fetch groups if the URLs of frames connected to the // whether we need to re-fetch groups if the URLs of frames connected to the
// sidebar app changes. // sidebar app changes.
let documentUri; let documentUri = null;
/* /*
* Fetch an individual group. * Fetch an individual group.
...@@ -166,11 +166,9 @@ function groups( ...@@ -166,11 +166,9 @@ function groups(
async function load() { async function load() {
// Step 1: Get the URI of the active document, so we can fetch groups // Step 1: Get the URI of the active document, so we can fetch groups
// associated with that document. // associated with that document.
let uri = null;
if (isSidebar) { if (isSidebar) {
uri = await getDocumentUriForGroupSearch(); documentUri = await getDocumentUriForGroupSearch();
} }
documentUri = uri;
// Step 2: Concurrently fetch the groups the user is a member of, // Step 2: Concurrently fetch the groups the user is a member of,
// the groups associated with the current document and the annotation // the groups associated with the current document and the annotation
...@@ -181,8 +179,8 @@ function groups( ...@@ -181,8 +179,8 @@ function groups(
if (authority) { if (authority) {
params.authority = authority; params.authority = authority;
} }
if (uri) { if (documentUri) {
params.document_uri = uri; params.document_uri = documentUri;
} }
// If there is a direct-linked annotation, fetch the annotation to see // If there is a direct-linked annotation, fetch the annotation to see
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment