Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mircea-pavel-anton committed Oct 16, 2024
1 parent 58b9b21 commit 08c714d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/mikrotik/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ func TestGetSystemInfo(t *testing.T) {
// Return dummy data for /rest/system/resource
if r.URL.Path == "/rest/system/resource" && r.Method == http.MethodGet {
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(mockServerInfo)
err := json.NewEncoder(w).Encode(mockServerInfo)
if err != nil {
t.Errorf("error json encoding server info")
}
return
}

Expand Down

0 comments on commit 08c714d

Please sign in to comment.