mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
all: Fix duplicate words in comments
This commit is contained in:
2
cache/dynacache/dynacache.go
vendored
2
cache/dynacache/dynacache.go
vendored
@@ -340,7 +340,7 @@ func GetOrCreatePartition[K comparable, V any](c *Cache, name string, opts Optio
|
|||||||
return p.(*Partition[K, V])
|
return p.(*Partition[K, V])
|
||||||
}
|
}
|
||||||
|
|
||||||
// At this point, we don't know the the number of partitions or their configuration, but
|
// At this point, we don't know the number of partitions or their configuration, but
|
||||||
// this will be re-adjusted later.
|
// this will be re-adjusted later.
|
||||||
const numberOfPartitionsEstimate = 10
|
const numberOfPartitionsEstimate = 10
|
||||||
maxSize := opts.CalculateMaxSize(c.opts.MaxSize / numberOfPartitionsEstimate)
|
maxSize := opts.CalculateMaxSize(c.opts.MaxSize / numberOfPartitionsEstimate)
|
||||||
|
@@ -4581,5 +4581,5 @@ tpl:
|
|||||||
- urlize
|
- urlize
|
||||||
Args:
|
Args:
|
||||||
- s
|
- s
|
||||||
Description: URLize returns the the strings s formatted as an URL.
|
Description: URLize returns the strings s formatted as an URL.
|
||||||
Examples: []
|
Examples: []
|
||||||
|
@@ -1092,7 +1092,7 @@ func (h *HugoSites) resolveAndClearStateForIdentities(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Drain the the cache eviction stack.
|
// Drain the cache eviction stack.
|
||||||
evicted := h.Deps.MemCache.DrainEvictedIdentities()
|
evicted := h.Deps.MemCache.DrainEvictedIdentities()
|
||||||
if len(evicted) < 200 {
|
if len(evicted) < 200 {
|
||||||
changes = append(changes, evicted...)
|
changes = append(changes, evicted...)
|
||||||
|
@@ -136,7 +136,7 @@ type AttributesHolder struct {
|
|||||||
// Attributes considered to be an option (code blocks)
|
// Attributes considered to be an option (code blocks)
|
||||||
options []Attribute
|
options []Attribute
|
||||||
|
|
||||||
// What we send to the the render hooks.
|
// What we send to the render hooks.
|
||||||
attributesMapInit sync.Once
|
attributesMapInit sync.Once
|
||||||
attributesMap map[string]any
|
attributesMap map[string]any
|
||||||
optionsMapInit sync.Once
|
optionsMapInit sync.Once
|
||||||
|
@@ -70,7 +70,7 @@ func (ns *Namespace) RelURL(s any) (string, error) {
|
|||||||
return ns.deps.PathSpec.RelURL(ss, false), nil
|
return ns.deps.PathSpec.RelURL(ss, false), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// URLize returns the the strings s formatted as an URL.
|
// URLize returns the strings s formatted as an URL.
|
||||||
func (ns *Namespace) URLize(s any) (string, error) {
|
func (ns *Namespace) URLize(s any) (string, error) {
|
||||||
ss, err := cast.ToStringE(s)
|
ss, err := cast.ToStringE(s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user