Skip to content

Commit c39e274

Browse files
committed
suggestions from golang
1 parent 842bba9 commit c39e274

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/migrations/gitlab.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func init() {
3232
type GitlabDownloaderFactory struct {
3333
}
3434

35-
// Match returns ture if the migration remote URL matched this downloader factory
35+
// Match returns true if the migration remote URL matched this downloader factory
3636
func (f *GitlabDownloaderFactory) Match(opts base.MigrateOptions) (bool, error) {
3737
var matched bool
3838

@@ -492,11 +492,11 @@ func (g *GitlabDownloader) GetPullRequests(page, perPage int) ([]*base.PullReque
492492
}
493493

494494
// Add the PR ID to the Issue Count because PR and Issues share ID space in Gitea
495-
newPRnumber := g.issueCount + int64(pr.IID)
495+
newPRNumber := g.issueCount + int64(pr.IID)
496496

497497
allPRs = append(allPRs, &base.PullRequest{
498498
Title: pr.Title,
499-
Number: int64(newPRnumber),
499+
Number: newPRNumber,
500500
PosterName: pr.Author.Username,
501501
PosterID: int64(pr.Author.ID),
502502
Content: pr.Description,

modules/migrations/migrate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func MigrateRepository(ctx context.Context, doer *models.User, ownerName string,
8686
return uploader.repo, nil
8787
}
8888

89-
// migrateRepository will download informations and upload to Uploader, this is a simple
89+
// migrateRepository will download information's and upload to Uploader, this is a simple
9090
// process for small repository. For a big repository, save all the data to disk
9191
// before upload is better
9292
func migrateRepository(downloader base.Downloader, uploader base.Uploader, opts base.MigrateOptions) error {

0 commit comments

Comments
 (0)