"frontend/src/git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "87b46629938bab2652c8fbed57f88ff4c2acb1ff"
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 { ...@@ -88,4 +88,3 @@ func (Announcement) Indexes() []ent.Index {
index.Fields("ends_at"), index.Fields("ends_at"),
} }
} }
...@@ -63,4 +63,3 @@ func (AnnouncementRead) Indexes() []ent.Index { ...@@ -63,4 +63,3 @@ func (AnnouncementRead) Indexes() []ent.Index {
index.Fields("announcement_id", "user_id").Unique(), index.Fields("announcement_id", "user_id").Unique(),
} }
} }
...@@ -244,4 +244,3 @@ func (h *AnnouncementHandler) ListReadStatus(c *gin.Context) { ...@@ -244,4 +244,3 @@ func (h *AnnouncementHandler) ListReadStatus(c *gin.Context) {
response.Paginated(c, items, paginationResult.Total, page, pageSize) response.Paginated(c, items, paginationResult.Total, page, pageSize)
} }
...@@ -79,4 +79,3 @@ func parseBoolQuery(v string) bool { ...@@ -79,4 +79,3 @@ func parseBoolQuery(v string) bool {
return false return false
} }
} }
...@@ -72,4 +72,3 @@ func UserAnnouncementFromService(a *service.UserAnnouncement) *UserAnnouncement ...@@ -72,4 +72,3 @@ func UserAnnouncementFromService(a *service.UserAnnouncement) *UserAnnouncement
UpdatedAt: a.Announcement.UpdatedAt, UpdatedAt: a.Announcement.UpdatedAt,
} }
} }
...@@ -81,4 +81,3 @@ func (r *announcementReadRepository) CountByAnnouncementID(ctx context.Context, ...@@ -81,4 +81,3 @@ func (r *announcementReadRepository) CountByAnnouncementID(ctx context.Context,
} }
return int64(count), nil return int64(count), nil
} }
...@@ -192,4 +192,3 @@ func announcementEntitiesToService(models []*dbent.Announcement) []service.Annou ...@@ -192,4 +192,3 @@ func announcementEntitiesToService(models []*dbent.Announcement) []service.Annou
} }
return out return out
} }
...@@ -64,4 +64,3 @@ func TestAnnouncementTargeting_Matches_AndOrSemantics(t *testing.T) { ...@@ -64,4 +64,3 @@ func TestAnnouncementTargeting_Matches_AndOrSemantics(t *testing.T) {
require.False(t, targeting.Matches(99.9, map[int64]struct{}{10: {}})) require.False(t, targeting.Matches(99.9, map[int64]struct{}{10: {}}))
require.True(t, targeting.Matches(100, 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