Trim comments to the non-obvious why
Drop narration, history and restated-code comments across the repo, keep short ones for security boundaries, upstream quirks and ordering constraints, and record the convention in CLAUDE.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -24,10 +24,7 @@ func (r *queryResolver) GiteaFeed(ctx context.Context) (*model.GiteaFeedItem, er
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// FetchLatestFeed returns (nil, nil) for an empty feed; mapGiteaFeed
|
||||
// would dereference it, so return null to the client instead. The cache
|
||||
// is deliberately not written in that case, so an empty feed is retried
|
||||
// on the next request.
|
||||
// Not cached, so an empty feed is retried next time.
|
||||
if feed == nil {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user