Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit a5dd549

Browse files
committed
fix lint issues
1 parent e7674ad commit a5dd549

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

datasource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ func (c *Client) DataSourceByUID(uid string) (*DataSource, error) {
351351
return result, err
352352
}
353353

354-
// DataSourceIdByName returns the Grafana data source id by name.
355-
func (c *Client) DataSourceIdByName(name string) (int64, error) {
354+
// DataSourceIDByName returns the Grafana data source ID by name.
355+
func (c *Client) DataSourceIDByName(name string) (int64, error) {
356356
path := fmt.Sprintf("/api/datasources/id/%s", name)
357357

358358
result := struct {

datasource_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,16 +257,16 @@ func TestDataSources(t *testing.T) {
257257
}
258258
}
259259

260-
func TestDataSourceIdByName(t *testing.T) {
260+
func TestDataSourceIDByName(t *testing.T) {
261261
server, client := gapiTestTools(t, 200, getDataSourceJSON)
262262
defer server.Close()
263263

264-
datasourceId, err := client.DataSourceIdByName("foo")
264+
datasourceID, err := client.DataSourceIDByName("foo")
265265
if err != nil {
266266
t.Fatal(err)
267267
}
268268

269-
if datasourceId != 1 {
269+
if datasourceID != 1 {
270270
t.Error("Not correctly parsing returned datasources.")
271271
}
272272
}

0 commit comments

Comments
 (0)