mirror of
https://github.com/stakater/Reloader.git
synced 2026-08-27 14:37:17 +00:00
feat: golangci-lint config and fixes
This commit is contained in:
@@ -162,6 +162,7 @@ func (b *BaseWorkload[T]) Update(ctx context.Context, c client.Client) error {
|
||||
|
||||
// ResetOriginal resets the original state to the current object state.
|
||||
func (b *BaseWorkload[T]) ResetOriginal() {
|
||||
//nolint:errcheck // Type assertion is safe: DeepCopyObject returns same type T
|
||||
b.original = b.object.DeepCopyObject().(T)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user