feat: golangci-lint config and fixes

This commit is contained in:
TheiLLeniumStudios
2026-01-08 10:25:05 +01:00
parent bd030fe795
commit 5f7f3a57bb
36 changed files with 869 additions and 135 deletions
+1
View File
@@ -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)
}