debian-forge-composer/internal/remotefile
Michael Vogt 573b349f16 clienterrors: rename WorkerClientError to clienterrors.New
The usual convention to create new object is to prefix `New*` so
this commit renames the `WorkerClientError`. Initially I thought
it would be `NewWorkerClientError()` but looking at the package
prefix it seems unneeded, i.e. `clienterrors.New()` already
provides enough context it seems and it's the only error we
construct.

We could consider renaming it to `clienterror` (singular) too
but that could be a followup.

I would also like to make `clienterror.Error` implement the
`error` interface but that should be a followup to make this
(mechanical) rename trivial to review.
2024-07-31 17:04:58 +02:00
..
client.go remotefile: Use io.ReadAll not ioutil.ReadAll 2023-03-22 08:14:01 -07:00
client_test.go internal/remotefile: create a remote file resolver 2023-03-16 09:55:39 +00:00
resolver.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
resolver_test.go internal/remotefile: create a remote file resolver 2023-03-16 09:55:39 +00:00
spec.go internal/remotefile: create a remote file resolver 2023-03-16 09:55:39 +00:00