Skip to content

Commit

Permalink
Forcing shape of Identity to always be a Transform.
Browse files Browse the repository at this point in the history
  • Loading branch information
marstr committed May 23, 2017
1 parent 165abaa commit 979f26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var (
)

//Identity is a trivial Transform which applies no operation on the value.
func Identity(value interface{}) interface{} {
var Identity Transform = func(value interface{}) interface{} {
return value
}

Expand Down

0 comments on commit 979f26c

Please sign in to comment.