mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-02 03:34:39 -06:00
minor: missing variable assignment in CheckSnapshot, struct-tag
This commit is contained in:
@@ -85,8 +85,8 @@ type Config struct {
|
|||||||
FileKey []byte `json:"-"`
|
FileKey []byte `json:"-"`
|
||||||
|
|
||||||
// for erasure coding
|
// for erasure coding
|
||||||
DataShards int `json:'data-shards'`
|
DataShards int `json:"data-shards"`
|
||||||
ParityShards int `json:'parity-shards'`
|
ParityShards int `json:"parity-shards"`
|
||||||
|
|
||||||
// for RSA encryption
|
// for RSA encryption
|
||||||
rsaPrivateKey *rsa.PrivateKey
|
rsaPrivateKey *rsa.PrivateKey
|
||||||
|
|||||||
@@ -2568,7 +2568,7 @@ func (manager *SnapshotManager) CheckSnapshot(snapshot *Snapshot) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if entry.EndChunk < entry.StartChunk {
|
if entry.EndChunk < entry.StartChunk {
|
||||||
fmt.Errorf("The file %s starts at chunk %d and ends at chunk %d",
|
err = fmt.Errorf("The file %s starts at chunk %d and ends at chunk %d",
|
||||||
entry.Path, entry.StartChunk, entry.EndChunk)
|
entry.Path, entry.StartChunk, entry.EndChunk)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user