Skip to content

Commit 4909832

Browse files
committed
exposed isComposite
1 parent ab9f6f3 commit 4909832

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

puan/ruleset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func (r *Ruleset) newWeighSelection(selection Selection) (weights.Selection, err
276276
}
277277

278278
func (r *Ruleset) obtainQuerySelectionID(selection Selection) (string, error) {
279-
if selection.isComposite() {
279+
if selection.IsComposite() {
280280
return r.setCompositeSelectionConstraint(selection.ids())
281281
}
282282

puan/selections.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (s Selections) ids() []string {
3434
return ids
3535
}
3636

37-
func (s Selection) isComposite() bool {
37+
func (s Selection) IsComposite() bool {
3838
return len(s.subSelectionIDs) > 0
3939
}
4040

@@ -107,7 +107,7 @@ func (s Selection) makesRedundant(other Selection) bool {
107107
return true
108108
}
109109

110-
prioritisedIsNotComposite := !s.isComposite()
110+
prioritisedIsNotComposite := !s.IsComposite()
111111

112112
return prioritisedIsNotComposite
113113
}
@@ -130,7 +130,7 @@ func (s Selection) modifySelection() Selections {
130130
return Selections{removeSelection}
131131
}
132132

133-
if s.isComposite() {
133+
if s.IsComposite() {
134134
primaryPrimitiveSelection := NewSelectionBuilder(s.id).
135135
WithAction(s.action).
136136
Build()

0 commit comments

Comments
 (0)