Skip to content

Commit b149a09

Browse files
authored
Point two comments at functions that exist (#614)
accountwide.go referred readers to filterTodosByAssignees, which is not a function in this repository — the project-scoped assignee note lives in listTodosInList. Point there, and say what the note actually says so the reference is useful without following it. The second is mine from #612: I renamed rejectEmptyTaskFilterValues to validateTaskFilterValues when it took on the --due token check, and left its doc comment naming the old function.
1 parent 7ca4336 commit b149a09

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎internal/commands/accountwide.go‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,17 @@ func accountWideCapNotice(capped bool, meta basecamp.ListMeta, count int, plural
191191
// algorithm untouched; the number of requests it takes is a property of the
192192
// result, not of the filter.
193193
//
194-
// Project-scoped --assignee is a different animal — see the note on
195-
// filterTodosByAssignees.
194+
// Project-scoped --assignee is a different animal: that endpoint has no
195+
// assignee parameter, so the flag is applied client-side over an unlimited
196+
// fetch. See the note in listTodosInList (internal/commands/todos.go).
196197

197198
// dueFilterValues are the tokens --due accepts. These are categories, not
198199
// dates: internal/dateparse is deliberately not involved, since "overdue" is
199200
// not a date and "with" is not a date range.
200201
var dueFilterValues = []string{"with", "without", "overdue"}
201202

202-
// rejectEmptyTaskFilterValues refuses an explicitly empty --due or --assignee.
203+
// validateTaskFilterValues refuses an explicitly empty --due or --assignee, and
204+
// an unknown --due token.
203205
//
204206
// Every other check in this file tests the flag's *value*, which makes `--due=`
205207
// indistinguishable from never passing --due: the project-scoped guard stops

0 commit comments

Comments
 (0)