Skip to content

Commit 4ad2bdc

Browse files
fix import
Signed-off-by: Kartikay <[email protected]>
1 parent b435b76 commit 4ad2bdc

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pkg/schemadsl/compiler/compiler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func DisallowExpirationFlag() Option {
9191

9292
func DisallowDeprecationFlag() Option {
9393
return func(cfg *config) {
94-
cfg.allowedFlags = slices.Filter([]string{}, cfg.allowedFlags, func(s string) bool {
94+
cfg.allowedFlags = lo.Filter(cfg.allowedFlags, func(s string, _ int) bool {
9595
return s != deprecationFlag
9696
})
9797
}

pkg/schemadsl/parser/parser.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ func (p *sourceParser) consumeDefinition() AstNode {
318318

319319
case p.isKeyword("permission"):
320320
defNode.Connect(dslshape.NodePredicateChild, p.consumePermission())
321-
322321
}
323322

324323
ok := p.consumeStatementTerminator()

0 commit comments

Comments
 (0)