mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
helpers: Golint fixes
This commit is contained in:
@@ -35,6 +35,7 @@ type PathSpec struct {
|
||||
multilingual bool
|
||||
}
|
||||
|
||||
// NewPathSpecFromConfig creats a new PathSpec from the given ConfigProvider.
|
||||
func NewPathSpecFromConfig(config ConfigProvider) *PathSpec {
|
||||
return &PathSpec{
|
||||
disablePathToLower: config.GetBool("disablePathToLower"),
|
||||
@@ -49,6 +50,7 @@ func NewPathSpecFromConfig(config ConfigProvider) *PathSpec {
|
||||
}
|
||||
}
|
||||
|
||||
// PaginatePath returns the configured root path used for paginator pages.
|
||||
func (p *PathSpec) PaginatePath() string {
|
||||
return p.paginatePath
|
||||
}
|
||||
|
Reference in New Issue
Block a user