fix: chmod'ing the manifest is unnecessary (#24165)

pull/24171/head
Jeffrey Smith II 2023-04-03 13:09:01 -04:00 committed by GitHub
parent eac0ee0acc
commit c854e53c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -1466,9 +1466,6 @@ func (m *Manifest) Write() (int64, error) {
tmp = f.Name()
if err = f.Chmod(0666); err != nil {
return fmt.Errorf("failed setting permissions on manifest file %q: %w", tmp, err)
}
if _, err = f.Write(buf); err != nil {
return fmt.Errorf("failed writing temporary manifest file %q: %w", tmp, err)
}