Skip to content

Commit 8ca8a39

Browse files
committed
fix: 7-to-8 migration check for converted config write errors
1 parent 26e2584 commit 8ca8a39

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ func convert(in io.Reader, out io.Writer, convFunc convFunc) error {
9191
if err != nil {
9292
return err
9393
}
94-
out.Write(fixed)
95-
out.Write([]byte("\n"))
96-
return nil
94+
if _, err := out.Write(fixed); err != nil {
95+
return err
96+
}
97+
_, err = out.Write([]byte("\n"))
98+
return err
9799
}
98100

99101
func ver7to8(bootstrap []string) []string {

0 commit comments

Comments
 (0)