Skip to content

Commit a94a941

Browse files
committed
modules: Remove extended edition check
With WebP support now in the standard Hugo binary, this warning has too many false positives. Fixes #14284
1 parent 385d1a1 commit a94a941

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

‎modules/config.go‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -369,21 +369,16 @@ func (v HugoVersion) String() string {
369369
// Hugo binary.
370370
func (v HugoVersion) IsValid() bool {
371371
current := hugo.CurrentVersion.Version()
372-
if v.Extended && !hugo.IsExtended {
373-
return false
374-
}
375-
376-
isValid := true
377372

378373
if v.Min != "" && current.Compare(v.Min) > 0 {
379-
isValid = false
374+
return false
380375
}
381376

382377
if v.Max != "" && current.Compare(v.Max) < 0 {
383-
isValid = false
378+
return false
384379
}
385380

386-
return isValid
381+
return true
387382
}
388383

389384
type Import struct {

0 commit comments

Comments
 (0)