We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72b846d commit 3f13f41Copy full SHA for 3f13f41
1 file changed
pkg/distribution/distribution/client_test.go
@@ -1210,14 +1210,14 @@ func TestMigrateHFTagsOnClientInit(t *testing.T) {
1210
tags := foundModel.Tags()
1211
hasOldTag := false
1212
hasNewTag := false
1213
-for _, tag := range tags {
1214
- if strings.HasPrefix(tag, "hf.co/") {
1215
- hasOldTag = true
1216
- }
1217
- if strings.HasPrefix(tag, "huggingface.co/") {
1218
- hasNewTag = true
1219
1220
-}
+ for _, tag := range tags {
+ if strings.HasPrefix(tag, "hf.co/") {
+ hasOldTag = true
+ }
+ if strings.HasPrefix(tag, "huggingface.co/") {
+ hasNewTag = true
1221
if hasOldTag {
1222
t.Errorf("Model still has old hf.co tag after migration: %v", tags)
1223
}
0 commit comments