mirror of
https://github.com/restic/restic.git
synced 2025-12-12 07:22:30 +00:00
Fix linter warnings
This commit is contained in:
@@ -87,7 +87,7 @@ func (p *Packer) Finalize() error {
|
||||
encryptedHeader = binary.LittleEndian.AppendUint32(encryptedHeader, uint32(len(encryptedHeader)))
|
||||
|
||||
if err := verifyHeader(p.k, encryptedHeader, p.blobs); err != nil {
|
||||
//nolint:revive // ignore linter warnings about error message spelling
|
||||
//nolint:revive,staticcheck // ignore linter warnings about error message spelling
|
||||
return fmt.Errorf("Detected data corruption while writing pack-file header: %w\nCorrupted data is either caused by hardware issues or software bugs. Please open an issue at https://github.com/restic/restic/issues/new/choose for further troubleshooting.", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user