Skip to content

Commit

Permalink
Merge f278de5 into 65d0d37
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Sarabia committed Feb 14, 2019
2 parents 65d0d37 + f278de5 commit b0e693a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apicalypse.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import (
// format and returns it as a string. The string is ready to be written into the
// body of an HTTP Request.
func Query(opts ...Option) (string, error) {
for _, opt := range opts {
if opt == nil {
return "", errors.New("a provided option is nil")
}
}
filters, err := newFilters(opts...)
if err != nil {
return "", errors.Wrap(err, "cannot create new filter map")
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit b0e693a

Please sign in to comment.