Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
jio
Commits
2411a6e0
Commit
2411a6e0
authored
Feb 24, 2021
by
Stefane Fermigier
Committed by
Romain Courteaud
Sep 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[documentstorage] fix operator precedence errors.
parent
745ec12d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
src/jio.storage/documentstorage.js
src/jio.storage/documentstorage.js
+4
-16
No files found.
src/jio.storage/documentstorage.js
View file @
2411a6e0
...
...
@@ -73,11 +73,8 @@
if
(
atob
(
exec
[
1
])
===
id
)
{
attachments
[
atob
(
exec
[
2
])]
=
{};
}
}
catch
(
error
)
{
}
catch
(
ignore
)
{
// Check if unable to decode base64 data
if
(
!
error
instanceof
ReferenceError
)
{
throw
error
;
}
}
}
}
...
...
@@ -143,11 +140,8 @@
if
(
DOCUMENT_REGEXP
.
test
(
key
))
{
try
{
id
=
atob
(
DOCUMENT_REGEXP
.
exec
(
key
)[
1
]);
}
catch
(
error
)
{
}
catch
(
ignore
)
{
// Check if unable to decode base64 data
if
(
!
error
instanceof
ReferenceError
)
{
throw
error
;
}
}
if
(
id
!==
undefined
)
{
id_dict
[
id
]
=
null
;
...
...
@@ -157,11 +151,8 @@
try
{
id
=
atob
(
exec
[
1
]);
attachment
=
atob
(
exec
[
2
]);
}
catch
(
error
)
{
}
catch
(
ignore
)
{
// Check if unable to decode base64 data
if
(
!
error
instanceof
ReferenceError
)
{
throw
error
;
}
}
if
(
attachment
!==
undefined
)
{
if
(
!
id_dict
.
hasOwnProperty
(
id
))
{
...
...
@@ -212,11 +203,8 @@
id
:
atob
(
DOCUMENT_REGEXP
.
exec
(
key
)[
1
]),
value
:
{}
});
}
catch
(
error
)
{
}
catch
(
ignore
)
{
// Check if unable to decode base64 data
if
(
!
error
instanceof
ReferenceError
)
{
throw
error
;
}
}
}
}
...
...
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