diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-06-24 15:16:13 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-06-28 10:02:14 +0300 |
commit | 39119388e82bccaf1de432a7a23b989f311d6b13 (patch) | |
tree | e48cb2a2c1612b4c6aa4a7d560f76786e6f4bc96 /.editorconfig | |
parent | 6c99d927a1c7a1cfc07f97cbb60059c2dbc8e022 (diff) |
gitpipe: Implement iterator for catfile object step
The pipeline steps are currently easy to misuse: the structures returned
on the channel all have an `Err` field, which MUST be checked by the
caller. It's easy enough to forget if one isn't prepared to do so.
Refactor the catfile object step to instead return a
CatfileObjectIterator. This iterator follows the typical Go idiom of
iterators with `Next()`, `Err()` and `Result()` functions. Given that
the iterator is an interface, this also makes it easily possible for
callers to replace it with their own adapter.
Diffstat (limited to '.editorconfig')
0 files changed, 0 insertions, 0 deletions