Skip to content

Commit 848afdb

Browse files
committed
improvements
1 parent 89e0f9f commit 848afdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/repository/branch.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ func SyncRepoBranchesWithRepo(ctx context.Context, repo *repo_model.Repository,
4242
return 0, fmt.Errorf("GetObjectFormat: %w", err)
4343
}
4444
if objFmt.Name() != repo.ObjectFormatName {
45-
repo.ObjectFormatName = objFmt.Name() // keep consistent with db
45+
repo.ObjectFormatName = objFmt.Name()
4646
if err = repo_model.UpdateRepositoryColsWithAutoTime(ctx, repo, "object_format_name"); err != nil {
47-
return 0, fmt.Errorf("UpdateRepository: %w", err)
47+
return 0, fmt.Errorf("UpdateRepositoryColsWithAutoTime: %w", err)
4848
}
4949
}
5050

0 commit comments

Comments
 (0)