mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
modules: Remove extended edition check
With WebP support now in the standard Hugo binary, this warning has too many false positives. Fixes #14284
This commit is contained in:
+4
-9
@@ -369,21 +369,16 @@ func (v HugoVersion) String() string {
|
||||
// Hugo binary.
|
||||
func (v HugoVersion) IsValid() bool {
|
||||
current := hugo.CurrentVersion.Version()
|
||||
if v.Extended && !hugo.IsExtended {
|
||||
|
||||
if v.Min != "" && current.Compare(v.Min) > 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
isValid := true
|
||||
|
||||
if v.Min != "" && current.Compare(v.Min) > 0 {
|
||||
isValid = false
|
||||
}
|
||||
|
||||
if v.Max != "" && current.Compare(v.Max) < 0 {
|
||||
isValid = false
|
||||
return false
|
||||
}
|
||||
|
||||
return isValid
|
||||
return true
|
||||
}
|
||||
|
||||
type Import struct {
|
||||
|
||||
Reference in New Issue
Block a user