Reformat some Go files
When working on #994 I noticed that some Go files are not formatted with `gofmt`. This PR fixes this.
This commit is contained in:
parent
7c44238bae
commit
4464802947
7 changed files with 19 additions and 19 deletions
|
@ -15,8 +15,8 @@ import (
|
||||||
|
|
||||||
// List of supported schedulers.
|
// List of supported schedulers.
|
||||||
const (
|
const (
|
||||||
SchedulerRoundRobin = "round_robin"
|
SchedulerRoundRobin = "round_robin"
|
||||||
SchedulerEntryFrequency = "entry_frequency"
|
SchedulerEntryFrequency = "entry_frequency"
|
||||||
// Default settings for the feed query builder
|
// Default settings for the feed query builder
|
||||||
DefaultFeedSorting = "parsing_error_count"
|
DefaultFeedSorting = "parsing_error_count"
|
||||||
DefaultFeedSortingDirection = "desc"
|
DefaultFeedSortingDirection = "desc"
|
||||||
|
|
|
@ -229,4 +229,3 @@ func replaceCustom(entryContent string, searchTerm string, replaceTerm string) s
|
||||||
}
|
}
|
||||||
return entryContent
|
return entryContent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
package rewrite // import "miniflux.app/reader/rewrite"
|
package rewrite // import "miniflux.app/reader/rewrite"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
|
||||||
"regexp"
|
"regexp"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"miniflux.app/logger"
|
"miniflux.app/logger"
|
||||||
"miniflux.app/url"
|
"miniflux.app/url"
|
||||||
|
|
|
@ -125,7 +125,7 @@ func (s *Storage) FeedsWithCounters(userID int64) (model.Feeds, error) {
|
||||||
builder.WithCounters()
|
builder.WithCounters()
|
||||||
builder.WithOrder(model.DefaultFeedSorting)
|
builder.WithOrder(model.DefaultFeedSorting)
|
||||||
builder.WithDirection(model.DefaultFeedSortingDirection)
|
builder.WithDirection(model.DefaultFeedSortingDirection)
|
||||||
return builder.GetFeeds()
|
return builder.GetFeeds()
|
||||||
}
|
}
|
||||||
|
|
||||||
// FeedsByCategoryWithCounters returns all feeds of the given user/category with counters of read and unread entries.
|
// FeedsByCategoryWithCounters returns all feeds of the given user/category with counters of read and unread entries.
|
||||||
|
|
|
@ -15,17 +15,17 @@ import (
|
||||||
|
|
||||||
// FeedQueryBuilder builds a SQL query to fetch feeds.
|
// FeedQueryBuilder builds a SQL query to fetch feeds.
|
||||||
type FeedQueryBuilder struct {
|
type FeedQueryBuilder struct {
|
||||||
store *Storage
|
store *Storage
|
||||||
args []interface{}
|
args []interface{}
|
||||||
conditions []string
|
conditions []string
|
||||||
order string
|
order string
|
||||||
direction string
|
direction string
|
||||||
limit int
|
limit int
|
||||||
offset int
|
offset int
|
||||||
withCounters bool
|
withCounters bool
|
||||||
counterJoinFeeds bool
|
counterJoinFeeds bool
|
||||||
counterArgs []interface{}
|
counterArgs []interface{}
|
||||||
counterConditions []string
|
counterConditions []string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewFeedQueryBuilder returns a new FeedQueryBuilder.
|
// NewFeedQueryBuilder returns a new FeedQueryBuilder.
|
||||||
|
|
|
@ -7,8 +7,8 @@ package ui // import "miniflux.app/ui"
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/http/response/html"
|
|
||||||
"miniflux.app/http/request"
|
"miniflux.app/http/request"
|
||||||
|
"miniflux.app/http/response/html"
|
||||||
"miniflux.app/http/route"
|
"miniflux.app/http/route"
|
||||||
"miniflux.app/ui/session"
|
"miniflux.app/ui/session"
|
||||||
"miniflux.app/ui/view"
|
"miniflux.app/ui/view"
|
||||||
|
|
|
@ -6,6 +6,7 @@ package ui // import "miniflux.app/ui"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"miniflux.app/config"
|
"miniflux.app/config"
|
||||||
"miniflux.app/oauth2"
|
"miniflux.app/oauth2"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue