Skip to content

Commit 0bd6021

Browse files
fix conflict
Signed-off-by: Kartikay <kartikay_2101ce32@iitp.ac.in>
1 parent c542dc1 commit 0bd6021

3 files changed

Lines changed: 1 addition & 4 deletions

File tree

e2e/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ require (
8282
google.golang.org/protobuf v1.36.6 // indirect
8383
gopkg.in/yaml.v3 v3.0.1 // indirect
8484
sigs.k8s.io/controller-runtime v0.21.0 // indirect
85-
)
85+
)

internal/services/v1/relationships.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,6 @@ func checkForDeprecatedRelationsAndObjects(ctx context.Context, update *v1.Relat
658658
case corev1.DeprecationType_DEPRECATED_TYPE_ERROR:
659659
return shared.NewDeprecationError(update.Relationship.Resource.ObjectType, update.Relationship.Relation, relDef.Deprecation.Comments)
660660
}
661-
662661
}
663662
nsdef, _, err := reader.ReadNamespaceByName(ctx, resource.ObjectType)
664663
if err != nil {

pkg/schemadsl/compiler/translator.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ func translateObjectDefinition(tctx *translationContext, defNode *dslNode) (*cor
305305
}
306306

307307
func deprecateRelationsAndObjects(deprecations []*core.Deprecation, namespaces []*core.NamespaceDefinition) error {
308-
309308
objectMap := make(map[string]*core.NamespaceDefinition)
310309
relationMap := make(map[string]*core.Relation)
311310

@@ -509,7 +508,6 @@ func translatePermission(tctx *translationContext, permissionNode *dslNode) (*co
509508
return permission, nil
510509
}
511510

512-
513511
func translateDeprecation(tctx *translationContext, depNode *dslNode) (*core.Deprecation, error) {
514512
if !slices.Contains(tctx.allowedFlags, "deprecation") || !slices.Contains(tctx.enabledFlags, "deprecation") {
515513
return nil, depNode.Errorf("deprecation not enabled")

0 commit comments

Comments
 (0)