From 7853c5a8b5c6449ee984161cf1d5679d3f263344 Mon Sep 17 00:00:00 2001 From: "Bryan T. Meyers" Date: Sun, 12 May 2019 16:07:45 -0400 Subject: [PATCH] go fmt --- providers/github/graphql.go | 26 +++++++++++++------------- providers/kde/provider.go | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/providers/github/graphql.go b/providers/github/graphql.go index 9f7fdf3..d3b24a7 100644 --- a/providers/github/graphql.go +++ b/providers/github/graphql.go @@ -86,21 +86,21 @@ type RepoQueryResult struct { func (rqr RepoQueryResult) Convert(name string) (rs *results.ResultSet) { rs = results.NewResultSet(name) for _, tag := range rqr.Data.Repository.Refs.Nodes { - pre := false - var published time.Time + pre := false + var published time.Time for _, node := range rqr.Data.Repository.Releases.Nodes { - if node.Tag.Name == tag.Name { - if node.IsPrerelease { - pre = true - } - published, _ = time.Parse(time.RFC3339, node.PublishedAt) - } + if node.Tag.Name == tag.Name { + if node.IsPrerelease { + pre = true + } + published, _ = time.Parse(time.RFC3339, node.PublishedAt) + } } - if pre { - continue - } - r := results.NewResult(name, tag.Name, fmt.Sprintf(SourceFormat, name, tag.Name), published) - rs.AddResult(r) + if pre { + continue + } + r := results.NewResult(name, tag.Name, fmt.Sprintf(SourceFormat, name, tag.Name), published) + rs.AddResult(r) } return } diff --git a/providers/kde/provider.go b/providers/kde/provider.go index f8fa91a..3805237 100644 --- a/providers/kde/provider.go +++ b/providers/kde/provider.go @@ -102,7 +102,7 @@ func (c Provider) Releases(name string) (rs *results.ResultSet, s results.Status buff := bytes.NewBuffer(listing) pieces := strings.Split(name, "/") pieces2 := strings.Split(pieces[len(pieces)-1], "-") - name = strings.Join(pieces2[0:len(pieces2)-1], "-") + name = strings.Join(pieces2[0:len(pieces2)-1], "-") var searchPrefix string switch len(pieces) { case 4: