From 03245445612e563afc0094206b948e6550548de9 Mon Sep 17 00:00:00 2001 From: Bastian Rihm Date: Fri, 12 Jan 2024 15:15:46 +0100 Subject: [PATCH] Linter fixes --- internal/projector/slide/list_of_speakers.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/internal/projector/slide/list_of_speakers.go b/internal/projector/slide/list_of_speakers.go index 3ea71bc7..129a1efd 100644 --- a/internal/projector/slide/list_of_speakers.go +++ b/internal/projector/slide/list_of_speakers.go @@ -251,23 +251,23 @@ func getCurrentSpeakerData(ctx context.Context, fetch *datastore.Fetcher, losID return "", "", fmt.Errorf("getting newUser: %w", err) } - var structureLevelListOfSpeakersId int - fetch.FetchIfExist(ctx, &structureLevelListOfSpeakersId, "speaker/%d/structure_level_list_of_speakers_id", id) + var structureLevelListOfSpeakersID int + fetch.FetchIfExist(ctx, &structureLevelListOfSpeakersID, "speaker/%d/structure_level_list_of_speakers_id", id) if err := fetch.Err(); err != nil { return "", "", fmt.Errorf("getting structure level for speaker %d: %w", id, err) } structureLevelName := "" - if structureLevelListOfSpeakersId != 0 { - var structureLevelId int - fetch.FetchIfExist(ctx, &structureLevelId, "structure_level_list_of_speakers/%d/structure_level_id", structureLevelListOfSpeakersId) + if structureLevelListOfSpeakersID != 0 { + var structureLevelID int + fetch.FetchIfExist(ctx, &structureLevelID, "structure_level_list_of_speakers/%d/structure_level_id", structureLevelListOfSpeakersID) if err := fetch.Err(); err != nil { - return "", "", fmt.Errorf("getting structure level for structure_level_list_of_speakers %d: %w", structureLevelListOfSpeakersId, err) + return "", "", fmt.Errorf("getting structure level for structure_level_list_of_speakers %d: %w", structureLevelListOfSpeakersID, err) } - fetch.Fetch(ctx, &structureLevelName, "structure_level/%d/name", structureLevelId) + fetch.Fetch(ctx, &structureLevelName, "structure_level/%d/name", structureLevelID) if err := fetch.Err(); err != nil { - return "", "", fmt.Errorf("getting name for structure level name %d: %w", structureLevelId, err) + return "", "", fmt.Errorf("getting name for structure level name %d: %w", structureLevelID, err) } }