Skip to content

Commit

Permalink
Issue #828 - few more golangci-lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMcDermott committed Jan 16, 2025
1 parent 35209be commit 0d4f9fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/registry/porch/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ var _ SimpleRESTCreateStrategy = packageRevisionStrategy{}
// before the object is persisted. This method should not mutate the
// object.
func (s packageRevisionStrategy) Validate(ctx context.Context, runtimeObj runtime.Object) field.ErrorList {
ctx, span := tracer.Start(ctx, "packageRevisionStrategy::Validate", trace.WithAttributes())
_, span := tracer.Start(ctx, "packageRevisionStrategy::Validate", trace.WithAttributes())
defer span.End()

allErrs := field.ErrorList{}
Expand Down
2 changes: 1 addition & 1 deletion pkg/repository/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func toApiConditionStatus(s kptfile.ConditionStatus) api.ConditionStatus {
}

func NextRevisionNumber(ctx context.Context, revs []string) (string, error) {
ctx, span := tracer.Start(ctx, "draft.go::NextRevisionNumber", trace.WithAttributes())
_, span := tracer.Start(ctx, "util.go::NextRevisionNumber", trace.WithAttributes())
defer span.End()

// Computes the next revision number as the latest revision number + 1.
Expand Down
2 changes: 1 addition & 1 deletion pkg/task/builtin.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func newPackageContextGeneratorMutation(packageConfig *builtins.PackageConfig) (
var _ mutation = &builtinEvalMutation{}

func (m *builtinEvalMutation) apply(ctx context.Context, resources repository.PackageResources) (repository.PackageResources, *api.TaskResult, error) {
ctx, span := tracer.Start(ctx, "builtinEvalMutation::Apply", trace.WithAttributes())
_, span := tracer.Start(ctx, "builtinEvalMutation::Apply", trace.WithAttributes())
defer span.End()

ff := &runtimeutil.FunctionFilter{
Expand Down

0 comments on commit 0d4f9fe

Please sign in to comment.