@@ -137,9 +137,9 @@ func (s newrelicService) getApplicationId(client *http.Client, appName string) (
137137 q .Set ("filter[name]" , appName )
138138 u .RawQuery = q .Encode ()
139139
140- req , err := http .NewRequest (http .MethodGet , u .String (), nil )
140+ req , err := http .NewRequest (http .MethodGet , u .String (), http . NoBody )
141141 if err != nil {
142- return "" , fmt .Errorf ("Failed to create filtered application request: %s " , err )
142+ return "" , fmt .Errorf ("failed to create filtered application request: %w " , err )
143143 }
144144
145145 req .Header .Set ("Content-Type" , "application/json" )
@@ -153,7 +153,7 @@ func (s newrelicService) getApplicationId(client *http.Client, appName string) (
153153
154154 var data newrelicApplicationsResponse
155155 if err := json .NewDecoder (resp .Body ).Decode (& data ); err != nil {
156- return "" , fmt .Errorf ("Failed to decode applications response: %s " , err )
156+ return "" , fmt .Errorf ("failed to decode applications response: %w " , err )
157157 }
158158
159159 if len (data .Applications ) == 0 {
@@ -199,7 +199,7 @@ func (s newrelicService) Send(notification Notification, dest Destination) (err
199199 return err
200200 }
201201
202- var appId = dest .Recipient
202+ appId : = dest .Recipient
203203 if dest .Recipient != "" {
204204 _ , err := strconv .Atoi (dest .Recipient )
205205 if err != nil {
0 commit comments