Skip to content

Commit 7dc6464

Browse files
committed
fix: 7-to-8 migration emit unaltered config if bootstrappers field is empty, nil, or the wrong type
1 parent 8ca8a39 commit 7dc6464

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ipfs-7-to-8/migration/config_conv.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ func convert(in io.Reader, out io.Writer, convFunc convFunc) error {
7878
if bootstrapi == nil {
7979
log.Log("Bootstrap field missing or of the wrong type")
8080
log.Log("Nothing to migrate")
81-
return nil
81+
_, err := out.Write(data)
82+
return err
8283
}
8384
}
8485
bootstrap := make([]string, len(bootstrapi))

0 commit comments

Comments
 (0)