]> Sergey Matveev's repositories - btrtrc.git/blobdiff - cmd/torrent/download.go
gofumpt
[btrtrc.git] / cmd / torrent / download.go
index 1f2fbc89ff7c1ae57004afb595908c07509d9a13..0ec4b99088250bc37cae52daf60c9791155519bc 100644 (file)
@@ -221,7 +221,7 @@ func waitForPieces(ctx context.Context, t *torrent.Torrent, beginIndex, endIndex
 }
 
 func writeMetainfoToFile(mi metainfo.MetaInfo, path string) error {
-       f, err := os.OpenFile(path, os.O_CREATE|os.O_EXCL|os.O_WRONLY, 0640)
+       f, err := os.OpenFile(path, os.O_CREATE|os.O_EXCL|os.O_WRONLY, 0o640)
        if err != nil {
                return err
        }