Skip to content

Commit

Permalink
chore(lint): fix lint failures
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh committed Nov 8, 2023
1 parent b934e2d commit 5badf16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/go/transformer/dsltojson.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (l *OpenFgaDslListener) ExitRelationDefTypeRestriction(ctx *parser.Relation
}

func (l *OpenFgaDslListener) ExitRelationDefRewrite(ctx *parser.RelationDefRewriteContext) {
partialRewrite := &pb.Userset{}
var partialRewrite *pb.Userset
computedUserset := &pb.ObjectRelation{
Relation: ctx.GetRewriteComputedusersetName().GetText(),
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/go/transformer/dsltojson_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestDSLToJSONTransformerForSyntaxErrorCases(t *testing.T) {
// we care that it errors for syntax errors more than we care about the error messages matching,
// esp. in Go as we are not building a language server on top of the returned errors yet
// actual matching error strings is safe to ignore for now
//require.EqualErrorf(t, err, testCase.GetErrorString(), "")
// require.EqualErrorf(t, err, testCase.GetErrorString(), "")
}
})
}
Expand Down

0 comments on commit 5badf16

Please sign in to comment.