Commit 9bee0a20 authored by ducky's avatar ducky
Browse files

chore: gofmt for golangci-lint

parent b7f69844
......@@ -88,4 +88,3 @@ func (Announcement) Indexes() []ent.Index {
index.Fields("ends_at"),
}
}
......@@ -63,4 +63,3 @@ func (AnnouncementRead) Indexes() []ent.Index {
index.Fields("announcement_id", "user_id").Unique(),
}
}
......@@ -244,4 +244,3 @@ func (h *AnnouncementHandler) ListReadStatus(c *gin.Context) {
response.Paginated(c, items, paginationResult.Total, page, pageSize)
}
......@@ -79,4 +79,3 @@ func parseBoolQuery(v string) bool {
return false
}
}
......@@ -72,4 +72,3 @@ func UserAnnouncementFromService(a *service.UserAnnouncement) *UserAnnouncement
UpdatedAt: a.Announcement.UpdatedAt,
}
}
......@@ -81,4 +81,3 @@ func (r *announcementReadRepository) CountByAnnouncementID(ctx context.Context,
}
return int64(count), nil
}
......@@ -192,4 +192,3 @@ func announcementEntitiesToService(models []*dbent.Announcement) []service.Annou
}
return out
}
......@@ -64,4 +64,3 @@ func TestAnnouncementTargeting_Matches_AndOrSemantics(t *testing.T) {
require.False(t, targeting.Matches(99.9, map[int64]struct{}{10: {}}))
require.True(t, targeting.Matches(100, map[int64]struct{}{10: {}}))
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment