Commit 0b579371 authored by matm's avatar matm

labels: marshal error fix

parent ca13d83a
......@@ -17,6 +17,7 @@
package gitlab
import (
"encoding/json"
"fmt"
"log"
"net/url"
......@@ -81,7 +82,7 @@ type Labels []string
// MarshalJSON implements the json.Marshaler interface.
func (l *Labels) MarshalJSON() ([]byte, error) {
return []byte(strings.Join(*l, ",")), nil
return json.Marshal(strings.Join(*l, ","))
}
// ListIssuesOptions represents the available ListIssues() options.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment