From 8dd0a1f3bed55c0c098693435bd0beb745576fc7 Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 23 Jul 2022 00:36:28 +0200 Subject: [PATCH] Fix build errors --- internal/matrix/client.go | 2 +- main.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/matrix/client.go b/internal/matrix/client.go index 7cce71b..c2b9f5f 100644 --- a/internal/matrix/client.go +++ b/internal/matrix/client.go @@ -12,7 +12,7 @@ func NewClient(config *config.MatrixConfig) (*mautrix.Client, error) { return nil, err } - _, err := client.Login(&mautrix.ReqLogin{ + _, err = client.Login(&mautrix.ReqLogin{ Type: mautrix.AuthTypePassword, Identifier: mautrix.UserIdentifier{ Type: mautrix.IdentifierTypeUser, diff --git a/main.go b/main.go index 46995f1..4232563 100644 --- a/main.go +++ b/main.go @@ -2,6 +2,7 @@ package main import ( "log" + "os" "git.luj0ga.de/franconian/matrix-pretix/internal/config" "git.luj0ga.de/franconian/matrix-pretix/internal/matrix" @@ -21,4 +22,5 @@ func main() { if err != nil { log.Fatal(err) } + _ = client }