Skip to content

Commit 866d7cb

Browse files
committed
fix formatting & remove unused function
1 parent c676d09 commit 866d7cb

2 files changed

Lines changed: 3 additions & 12 deletions

File tree

internal/sessiontest/client_integration_test.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func testLogsForCompletelyOptionalDisclosure(t *testing.T) {
4747
require.NoError(t, err)
4848

4949
latestLog := logs[0]
50-
50+
5151
require.Equal(t, latestLog.Type, irmaclient.LogType_Disclosure)
5252
require.Empty(t, latestLog.DisclosureLog.Credentials)
5353
require.Equal(t, latestLog.DisclosureLog.Protocol, irmaclient.Protocol_Irma)
@@ -61,8 +61,7 @@ func performCompletelyOptionalDisclosure(t *testing.T, client *irmaclient.Client
6161
irma.AttributeCon{
6262
irma.NewAttributeRequest("test.test.email.email"),
6363
},
64-
irma.AttributeCon {
65-
},
64+
irma.AttributeCon{},
6665
},
6766
}
6867
sessionReqJson := startDisclosureSessionAtServer(t, irmaServer, req)
@@ -72,8 +71,7 @@ func performCompletelyOptionalDisclosure(t *testing.T, client *irmaclient.Client
7271
permissionRequest := sessionHandler.AwaitPermissionRequest()
7372

7473
choice := [][]*irma.AttributeIdentifier{
75-
{
76-
},
74+
{},
7775
}
7876

7977
permissionRequest.PermissionHandler(true, &irma.DisclosureChoice{Attributes: choice})

irmaclient/storage.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -490,13 +490,6 @@ func (s *storage) loadLogs(max int, startAt func(*bbolt.Cursor) (key, value []by
490490
})
491491
}
492492

493-
// IterateLogs iterates over all logs sorted by time, starting with the newest one.
494-
func (s *storage) IterateLogs(handler func(log *LogEntry) error) error {
495-
return s.db.View(func(tx *bbolt.Tx) error {
496-
return s.TxIterateLogs(&transaction{tx}, handler)
497-
})
498-
}
499-
500493
// TxIterateLogs iterates over all logs sorted by time, starting with the newest one.
501494
func (s *storage) TxIterateLogs(tx *transaction, handler func(log *LogEntry) error) error {
502495
bucket := tx.Bucket([]byte(logsBucket))

0 commit comments

Comments
 (0)