Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
irmago
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
IRMA
Github mirrors
irmago
Commits
be0f0148
Commit
be0f0148
authored
Jan 23, 2020
by
Ivar Derksen
Committed by
Sietse Ringers
Feb 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimization: do not store updates array if there are no changes
parent
f3a6e18d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
irmaclient/updates.go
irmaclient/updates.go
+5
-0
No files found.
irmaclient/updates.go
View file @
be0f0148
...
...
@@ -162,6 +162,11 @@ func (client *Client) update() error {
}
}
// Early exit if all updates are already performed to prevent superfluously storing the updates array
if
len
(
client
.
updates
)
==
len
(
clientUpdates
)
{
return
nil
}
// Perform all new updates
for
i
:=
len
(
client
.
updates
);
i
<
len
(
clientUpdates
);
i
++
{
err
=
nil
...
...
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