From 16114f5e838afb0042ecf47a7764351c709ed250 Mon Sep 17 00:00:00 2001 From: Timur Ismagilov Date: Thu, 3 Feb 2022 23:24:38 +0500 Subject: [PATCH] Fix the migrator failing at wikis with no .myco files --- migration/rockets.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/migration/rockets.go b/migration/rockets.go index 2b157f5..eee0d39 100644 --- a/migration/rockets.go +++ b/migration/rockets.go @@ -86,6 +86,11 @@ func MigrateRocketsMaybe() { _ = file.Close() } + if len(mycoFiles) == 0 { + hop.Abort() + return + } + if hop.WithFiles(mycoFiles...).Apply().HasErrors() { log.Fatal("Something went wrong when commiting rocket link migration: ", hop.FirstErrorText()) }