Skip to content

Commit 1438875

Browse files
committed
Changed method name.
1 parent 1eb78fa commit 1438875

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routers/repo/migrate.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func Migrate(ctx *context.Context) {
3434

3535
serviceType := structs.GitServiceType(ctx.QueryInt("service_type"))
3636

37-
setSharedData(ctx, serviceType)
37+
setMigrationContextData(ctx, serviceType)
3838

3939
if serviceType == 0 {
4040
ctx.Data["Org"] = ctx.Query("org")
@@ -123,7 +123,7 @@ func MigratePost(ctx *context.Context) {
123123

124124
serviceType := structs.GitServiceType(form.Service)
125125

126-
setSharedData(ctx, serviceType)
126+
setMigrationContextData(ctx, serviceType)
127127

128128
ctxUser := checkContextUser(ctx, form.UID)
129129
if ctx.Written() {
@@ -202,7 +202,7 @@ func MigratePost(ctx *context.Context) {
202202
handleMigrateError(ctx, ctxUser, err, "MigratePost", tpl, form)
203203
}
204204

205-
func setSharedData(ctx *context.Context, serviceType structs.GitServiceType) {
205+
func setMigrationContextData(ctx *context.Context, serviceType structs.GitServiceType) {
206206
ctx.Data["Title"] = ctx.Tr("new_migrate")
207207

208208
ctx.Data["LFSActive"] = setting.LFS.StartServer

0 commit comments

Comments
 (0)