comparison pkg/imports/fd.go @ 5262:5df1eff5e445

Made staticcheck a little happier.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 13 May 2020 19:43:57 +0200
parents f11b9b50fcc9
children 41a67619c170
comparison
equal deleted inserted replaced
5261:93b95ac2cf5b 5262:5df1eff5e445
483 old++ 483 old++
484 } 484 }
485 485
486 // Do not fail if features > 0 because otherwise new features are lost 486 // Do not fail if features > 0 because otherwise new features are lost
487 if features == 0 && old == 0 { 487 if features == 0 && old == 0 {
488 return nil, fmt.Errorf("Invalidating features failed") 488 return nil, fmt.Errorf("invalidating features failed")
489 } 489 }
490 490
491 if old > 0 { 491 if old > 0 {
492 feedback.Info("Number of features invalidated: %d", old) 492 feedback.Info("Number of features invalidated: %d", old)
493 } 493 }