From 4c0d9d0a0778c7e48a8a0c1d1b9f86153da5427d Mon Sep 17 00:00:00 2001 From: hidewrong <167099254+hidewrong@users.noreply.github.com> Date: Thu, 2 May 2024 10:04:54 +0800 Subject: [PATCH] chore: fix struct names (#4766) Signed-off-by: hidewrong --- pkg/file/clean.go | 2 +- pkg/models/repository_blob.go | 2 +- pkg/models/value.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/file/clean.go b/pkg/file/clean.go index 47d84cf13..8c54fd0e0 100644 --- a/pkg/file/clean.go +++ b/pkg/file/clean.go @@ -28,7 +28,7 @@ type cleanJob struct { options CleanOptions } -// ScanOptions provides options for scanning files. +// CleanOptions provides options for scanning files. type CleanOptions struct { Paths []string diff --git a/pkg/models/repository_blob.go b/pkg/models/repository_blob.go index b5a87bcc9..3041d7064 100644 --- a/pkg/models/repository_blob.go +++ b/pkg/models/repository_blob.go @@ -2,7 +2,7 @@ package models import "context" -// FileGetter provides methods to get files by ID. +// BlobReader provides methods to get files by ID. type BlobReader interface { EntryExists(ctx context.Context, checksum string) (bool, error) } diff --git a/pkg/models/value.go b/pkg/models/value.go index 356d65293..a0e94ee6b 100644 --- a/pkg/models/value.go +++ b/pkg/models/value.go @@ -177,7 +177,7 @@ func NewOptionalBoolPtr(v *bool) OptionalBool { return OptionalBool{*v, false, true} } -// OptionalBool represents an optional float64 argument that may be null. See OptionalString. +// OptionalFloat64 represents an optional float64 argument that may be null. See OptionalString. type OptionalFloat64 struct { Value float64 Null bool