Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
tczekajlo committed Sep 16, 2021
1 parent 5b7f98d commit b791372
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/rasax/environmets.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ import (
func (r *RasaX) SaveEnvironments(body []rtypes.EnvironmentsEndpointRequest) error {
urlAddress := r.getURL()
b := new(bytes.Buffer)
json.NewEncoder(b).Encode(body)

if err := json.NewEncoder(b).Encode(body); err != nil {
return err
}

url := fmt.Sprintf("%s/api/environments", urlAddress)
r.Log.V(1).Info("Sending a request to Rasa X", "url", url)
Expand Down

0 comments on commit b791372

Please sign in to comment.