chore: use errors.New to replace fmt.Errorf with no parameters (#19568)

Signed-off-by: ChengenH <hce19970702@gmail.com>
This commit is contained in:
Andi
2024-05-09 16:44:07 +08:00
committed by GitHub
parent 519dbfebf6
commit f5e3eedf34
3 changed files with 4 additions and 4 deletions

View File

@@ -558,7 +558,7 @@ func loadTierConfig(ctx context.Context, objAPI ObjectLayer) (*TierConfigMgr, er
}
if len(data) <= 4 {
return nil, fmt.Errorf("tierConfigInit: no data")
return nil, errors.New("tierConfigInit: no data")
}
// Read header