Skip to content
This repository was archived by the owner on Aug 24, 2024. It is now read-only.

Commit 40df7bf

Browse files
committed
fix minor errors
1 parent 6d4dd7f commit 40df7bf

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

migration2/migration2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func (m *Migration2) Description() string {
1717
}
1818

1919
func (m *Migration2) Run(repoPath string) error {
20-
oldRepo, err := beforerepo.NewGitRepo(repoPath, nil)
20+
oldRepo, err := beforerepo.NewGitRepo(repoPath, func(beforerepo.ClockedRepo) error { return nil })
2121
if err != nil {
2222
return err
2323
}

root.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ func runRootCmd(env *Env, migrations []Migration) error {
4848
for i, migration := range migrations {
4949
if i > 0 {
5050
env.out.Println()
51-
env.out.Println()
5251
}
53-
env.out.Print("Migration #%d\n", i+1)
52+
env.out.Printf("Migration #%d\n", i+1)
5453
env.out.Println("Purpose:", migration.Description())
5554
env.out.Println()
5655

0 commit comments

Comments
 (0)