Skip to content

Commit 3f13f41

Browse files
committed
fix format
1 parent 72b846d commit 3f13f41

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

pkg/distribution/distribution/client_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,14 +1210,14 @@ func TestMigrateHFTagsOnClientInit(t *testing.T) {
12101210
tags := foundModel.Tags()
12111211
hasOldTag := false
12121212
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-
}
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+
}
12211221
if hasOldTag {
12221222
t.Errorf("Model still has old hf.co tag after migration: %v", tags)
12231223
}

0 commit comments

Comments
 (0)