Fix various issues found by golangci-lint.

This commit is contained in:
Joachim Bauch
2021-04-26 17:25:52 +02:00
parent e849dc8cbd
commit c8e4bfe007
32 changed files with 556 additions and 501 deletions
+6 -2
View File
@@ -133,8 +133,12 @@ func testRoomSessions(t *testing.T, sessions RoomSessions) {
t.Errorf("Expected session id %s, got %s", s2.PublicId(), sid)
}
sessions.SetRoomSession(s1, "room-session")
sessions.SetRoomSession(s2, "room-session")
if err := sessions.SetRoomSession(s1, "room-session"); err != nil {
t.Error(err)
}
if err := sessions.SetRoomSession(s2, "room-session"); err != nil {
t.Error(err)
}
sessions.DeleteRoomSession(s1)
if sid, err := sessions.GetSessionId("room-session"); err != nil {
t.Errorf("Expected session id %s, got error %s", s2.PublicId(), err)