Skip to content

Commit

Permalink
shape: Fix Set method doing nothing. Fixes cayleygraph#982.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennwc authored and paralin committed May 4, 2024
1 parent b039e99 commit 79cdce9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions query/shape/shape.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import (
"regexp"
"strings"

"github.com/cayleygraph/quad"

"github.com/cayleygraph/cayley/clog"
"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/cayley/graph/iterator"
"github.com/cayleygraph/cayley/graph/refs"
"github.com/cayleygraph/quad"
)

var (
Expand Down Expand Up @@ -193,7 +194,7 @@ func (q InternalQuad) Get(d quad.Direction) refs.Ref {
}

// Set assigns a specified direction of the quad to a given value.
func (q InternalQuad) Set(d quad.Direction, v refs.Ref) {
func (q *InternalQuad) Set(d quad.Direction, v refs.Ref) {
switch d {
case quad.Subject:
q.Subject = v
Expand Down

0 comments on commit 79cdce9

Please sign in to comment.