Skip to content

Commit

Permalink
Fix lints #2
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Mar 21, 2024
1 parent 74b282d commit cd84009
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions internal/handlers/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ func inputDescriptorsOf(event deployevent.Event) (result []string) {
// `name` is the name of this resource from which the Git repository was
// pulled, which can be readable like `helm-charts.git` or `secrets.git`,
// but sometimes is nonsensical without context (e.g. `qa-de-1.git` for a
//checkout of `secrets.git` with path filter on qa-de-1 values), so we're
//only using it if we don't have a better alternative
// checkout of `secrets.git` with path filter on qa-de-1 values), so we're
// only using it if we don't have a better alternative
readableName := name
if repo.RemoteURL != "" {
// our preference is to take the basename from the remote URL, e.g.
Expand Down
6 changes: 3 additions & 3 deletions internal/tenso/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type ValidationHandler interface {
// is enabled in the configuration.
//
// A (ProviderClient, EndpointOpts) pair is provided for handlers that need to
//talk to OpenStack. During unit tests, (nil, nil) will be provided instead.
// talk to OpenStack. During unit tests, (nil, nil) will be provided instead.
Init(pc *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) error

ValidatePayload(payload []byte) (*PayloadInfo, error)
Expand All @@ -59,7 +59,7 @@ type TranslationHandler interface {
// is enabled in the configuration.
//
// A (ProviderClient, EndpointOpts) pair is provided for handlers that need to
//talk to OpenStack. During unit tests, (nil, {}) will be provided instead.
// talk to OpenStack. During unit tests, (nil, {}) will be provided instead.
Init(pc *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) error

TranslatePayload(payload []byte) ([]byte, error)
Expand Down Expand Up @@ -92,7 +92,7 @@ type DeliveryHandler interface {
// is enabled in the configuration.
//
// A (ProviderClient, EndpointOpts) pair is provided for handlers that need to
//talk to OpenStack. During unit tests, (nil, nil) will be provided instead.
// talk to OpenStack. During unit tests, (nil, nil) will be provided instead.
Init(pc *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) error

DeliverPayload(ctx context.Context, payload []byte) (*DeliveryLog, error)
Expand Down
4 changes: 2 additions & 2 deletions internal/test/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import (
// For tests, we define the payload types "test-foo.v1" and "test-bar.v1". The
// foo type can be ingested only, and the bar type can be delivered only.
// Payloads for "test-foo.v1" must be JSON documents like {"foo":<integer>}, and
//analogously for "test-bar.v1". Conversion from foo to bar payloads just
//renames the field, the value remains the same.
// analogously for "test-bar.v1". Conversion from foo to bar payloads just
// renames the field, the value remains the same.

func init() {
tenso.ValidationHandlerRegistry.Add(func() tenso.ValidationHandler { return &testValidationHandler{"foo"} })
Expand Down

0 comments on commit cd84009

Please sign in to comment.