chore: gofmt for golangci-lint
This commit is contained in:
@@ -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 {
|
|||||||
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) {
|
|||||||
|
|
||||||
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 {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
|||||||
}
|
}
|
||||||
return int64(count), nil
|
return int64(count), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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) {
|
|||||||
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: {}}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user