Skip to content

Commit c1804a6

Browse files
committedMay 10, 2021
Format files.
1 parent c218b7d commit c1804a6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
 

‎ast.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ type AttributePath struct {
6565
AttributeName string
6666
SubAttribute *string
6767
}
68+
6869
func (p AttributePath) String() string {
6970
s := p.AttributeName
7071
if p.URIPrefix != nil {
@@ -75,6 +76,7 @@ func (p AttributePath) String() string {
7576
}
7677
return s
7778
}
79+
7880
// SubAttributeName returns the sub attribute name if present.
7981
// Returns an empty string otherwise.
8082
func (p *AttributePath) SubAttributeName() string {
@@ -83,6 +85,7 @@ func (p *AttributePath) SubAttributeName() string {
8385
}
8486
return ""
8587
}
88+
8689
// URI returns the URI if present.
8790
// Returns an empty string otherwise.
8891
func (p *AttributePath) URI() string {
@@ -115,7 +118,7 @@ func (e LogicalExpression) String() string {
115118
return fmt.Sprintf("%v %s %v", e.Left, e.Operator, e.Right)
116119
}
117120

118-
func (*LogicalExpression) exprNode() {}
121+
func (*LogicalExpression) exprNode() {}
119122

120123
// LogicalOperator represents a logical operation such as 'and' / 'or'.
121124
type LogicalOperator string
@@ -129,7 +132,7 @@ func (e NotExpression) String() string {
129132
return fmt.Sprintf("not(%v)", e.Expression)
130133
}
131134

132-
func (*NotExpression) exprNode() {}
135+
func (*NotExpression) exprNode() {}
133136

134137
// Path describes the target of a PATCH operation. Path can have an optional
135138
// ValueExpression and SubAttribute.
@@ -173,4 +176,4 @@ func (e ValuePath) String() string {
173176
return fmt.Sprintf("%v[%v]", e.AttributePath, e.ValueFilter)
174177
}
175178

176-
func (*ValuePath) exprNode() {}
179+
func (*ValuePath) exprNode() {}

‎attrexp.go

-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ func (p config) parseNumber(node *ast.Node) (interface{}, error) {
121121
nStr += node.Value
122122
default:
123123
return AttributeExpression{}, invalidChildTypeError(typ.Number, node.Type)
124-
125124
}
126125
}
127126
default:

0 commit comments

Comments
 (0)
Please sign in to comment.