Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
c7a2406c
Commit
c7a2406c
authored
Feb 24, 2018
by
Sietse Ringers
Browse files
Remove superfluous parameter to session helper function
parent
f71c2a83
Changes
1
Hide whitespace changes
Inline
Side-by-side
irmaclient/session.go
View file @
c7a2406c
...
...
@@ -174,10 +174,10 @@ func (session *session) panicFailure() {
}
}
func
(
session
*
session
)
checkAndUpateConfiguration
(
client
*
Client
)
bool
{
func
(
session
*
session
)
checkAndUpateConfiguration
()
bool
{
var
err
error
for
id
:=
range
session
.
irmaSession
.
Identifiers
()
.
SchemeManagers
{
manager
,
contains
:=
client
.
Configuration
.
SchemeManagers
[
id
]
manager
,
contains
:=
session
.
client
.
Configuration
.
SchemeManagers
[
id
]
if
!
contains
{
session
.
fail
(
&
irma
.
SessionError
{
ErrorType
:
irma
.
ErrorUnknownSchemeManager
,
...
...
@@ -226,7 +226,7 @@ func (client *Client) NewManualSession(sigrequestJSONString string, handler Hand
session
.
Handler
.
StatusUpdate
(
session
.
Action
,
irma
.
StatusManualStarted
)
if
!
session
.
checkAndUpateConfiguration
(
client
)
{
if
!
session
.
checkAndUpateConfiguration
()
{
return
}
...
...
@@ -323,7 +323,7 @@ func (session *session) start() {
}
}
if
!
session
.
checkAndUpateConfiguration
(
session
.
client
)
{
if
!
session
.
checkAndUpateConfiguration
()
{
return
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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