Skip to content
This repository was archived by the owner on Apr 9, 2020. It is now read-only.

Commit e83a0ea

Browse files
committed
🚨 Removed linter warnings
1 parent 236e5ee commit e83a0ea

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

fetch_embed_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func TestFetchEmbed(t *testing.T) {
4646
t.Run(url, func(t *testing.T) {
4747
provider := findProvider(url)
4848
if provider == nil {
49-
provider = &Provider{Endpoints: []Endpoint{Endpoint{}}}
49+
provider = &Provider{Endpoints: []Endpoint{{}}}
5050
}
5151

5252
_, err := fetchEmbed(url, provider, nil)

oembed.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package oembed add utils for supporting oEmbed fetching data,
12
package oembed
23

34
import "golang.org/x/xerrors"

types.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ type (
99
Endpoints []Endpoint `json:"endpoints"`
1010
}
1111

12-
// Provider represent a single endpoint of Provider
12+
// Endpoint represent a single endpoint of Provider
1313
Endpoint struct {
1414
Schemes []string `json:"schemes,omitempty"`
1515
URL string `json:"url"`
1616
Discovery bool `json:"discovery,omitempty"`
1717
Formats []string `json:"formats,omitempty"`
1818
}
1919

20-
// Response can specify a resource type, such as photo or video.
20+
// OEmbed can specify a resource type, such as photo or video.
2121
// Each type has specific parameters associated with it.
2222
OEmbed struct {
2323
// The resource type.

0 commit comments

Comments
 (0)