Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
928a0b90
Commit
928a0b90
authored
Jun 07, 2019
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary `uri` local variable
parent
c95073a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
groups.js
src/sidebar/services/groups.js
+4
-6
No files found.
src/sidebar/services/groups.js
View file @
928a0b90
...
...
@@ -138,7 +138,7 @@ function groups(
// 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
// sidebar app changes.
let
documentUri
;
let
documentUri
=
null
;
/*
* Fetch an individual group.
...
...
@@ -166,11 +166,9 @@ function groups(
async
function
load
()
{
// Step 1: Get the URI of the active document, so we can fetch groups
// associated with that document.
let
uri
=
null
;
if
(
isSidebar
)
{
u
ri
=
await
getDocumentUriForGroupSearch
();
documentU
ri
=
await
getDocumentUriForGroupSearch
();
}
documentUri
=
uri
;
// Step 2: Concurrently fetch the groups the user is a member of,
// the groups associated with the current document and the annotation
...
...
@@ -181,8 +179,8 @@ function groups(
if
(
authority
)
{
params
.
authority
=
authority
;
}
if
(
u
ri
)
{
params
.
document_uri
=
u
ri
;
if
(
documentU
ri
)
{
params
.
document_uri
=
documentU
ri
;
}
// If there is a direct-linked annotation, fetch the annotation to see
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment