chore: make function comment match function name (#4622)

This commit is contained in:
Milos Gajdos 2025-04-13 07:10:22 -07:00 committed by GitHub
commit 523791cb5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import (
"context" "context"
) )
// resumeHashAt is a noop when resumable digest support is disabled. // resumeDigest is a noop when resumable digest support is disabled.
func (bw *blobWriter) resumeDigest(ctx context.Context) error { func (bw *blobWriter) resumeDigest(ctx context.Context) error {
return errResumableDigestNotAvailable return errResumableDigestNotAvailable
} }

View File

@ -35,7 +35,7 @@ func withTimeoutNotification(ctx context.Context, timeout *bool) context.Context
return context.WithValue(ctx, timeoutNotifyContextKey, timeout) return context.WithValue(ctx, timeoutNotifyContextKey, timeout)
} }
// withRetryNotifier returns a context that contains a retry notifier. The // withRetryNotification returns a context that contains a retry notifier. The
// retryNotificationPolicy will then invoke the callback when a retry happens // retryNotificationPolicy will then invoke the callback when a retry happens
func withRetryNotification(ctx context.Context, r retryNotificationReceiver) context.Context { // nolint: unused // may become useful at some point func withRetryNotification(ctx context.Context, r retryNotificationReceiver) context.Context { // nolint: unused // may become useful at some point
return context.WithValue(ctx, retryNotifyContextKey, r) return context.WithValue(ctx, retryNotifyContextKey, r)

View File

@ -40,7 +40,7 @@ type cloudFrontStorageMiddleware struct {
var _ storagedriver.StorageDriver = &cloudFrontStorageMiddleware{} var _ storagedriver.StorageDriver = &cloudFrontStorageMiddleware{}
// newCloudFrontLayerHandler constructs and returns a new CloudFront // newCloudFrontStorageMiddleware constructs and returns a new CloudFront
// LayerHandler implementation. // LayerHandler implementation.
// //
// Required options: // Required options: