There was an error while loading. Please reload this page.
1 parent 385d1a1 commit a94a941Copy full SHA for a94a941
modules/config.go
@@ -369,21 +369,16 @@ func (v HugoVersion) String() string {
369
// Hugo binary.
370
func (v HugoVersion) IsValid() bool {
371
current := hugo.CurrentVersion.Version()
372
- if v.Extended && !hugo.IsExtended {
373
- return false
374
- }
375
-
376
- isValid := true
377
378
if v.Min != "" && current.Compare(v.Min) > 0 {
379
- isValid = false
+ return false
380
}
381
382
if v.Max != "" && current.Compare(v.Max) < 0 {
383
384
385
386
- return isValid
+ return true
387
388
389
type Import struct {
0 commit comments