From 8d9b85f10308c37679c88824baf2f3674ec244d6 Mon Sep 17 00:00:00 2001 From: Shivek Khurana Date: Fri, 5 Feb 2021 18:28:09 +0530 Subject: [PATCH] Fix linting --- protocol/urls/urls.go | 12 ++++++------ protocol/urls/urls_test.go | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/protocol/urls/urls.go b/protocol/urls/urls.go index d20164604..a384afc58 100644 --- a/protocol/urls/urls.go +++ b/protocol/urls/urls.go @@ -22,16 +22,16 @@ type GiphyOembedData struct { ProviderName string `json:"provider_name"` Title string `json:"title"` URL string `json:"url"` - Height int `json:"height"` - Width int `json:"width"` + Height int `json:"height"` + Width int `json:"width"` } type TenorOembedData struct { ProviderName string `json:"provider_name"` ThumbnailURL string `json:"thumbnail_url"` AuthorName string `json:"author_name"` - Height int `json:"height"` - Width int `json:"width"` + Height int `json:"height"` + Width int `json:"width"` } type LinkPreviewData struct { @@ -39,8 +39,8 @@ type LinkPreviewData struct { Title string `json:"title" meta:"og:title"` ThumbnailURL string `json:"thumbnailUrl" meta:"og:image"` ContentType string `json:"contentType"` - Height int `json:"height"` - Width int `json:"width"` + Height int `json:"height"` + Width int `json:"width"` } type Site struct { diff --git a/protocol/urls/urls_test.go b/protocol/urls/urls_test.go index cef851b8b..210a07bcb 100644 --- a/protocol/urls/urls_test.go +++ b/protocol/urls/urls_test.go @@ -44,8 +44,8 @@ func TestGetGiphyPreviewData(t *testing.T) { Site: "GIPHY", Title: "Boston Dynamics Yes GIF by FullMag - Find & Share on GIPHY", ThumbnailURL: "https://media1.giphy.com/media/lcG3qwtTKSNI2i5vst/giphy.gif", - Height: 480, - Width: 480, + Height: 480, + Width: 480, } require.NoError(t, err) require.Equal(t, bostonDynamicsEthGifData.Site, previewData.Site)