Skip to content

Commit

Permalink
Merge pull request #653 from gorbak25/fix-compression
Browse files Browse the repository at this point in the history
Fix compression level check
  • Loading branch information
gilbertchen committed Sep 18, 2023
2 parents 981efc1 + bf3ea8a commit cc482be
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions duplicacy/duplicacy_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,6 @@ func configRepository(context *cli.Context, init bool) {
"The storage '%s' has already been initialized", preference.StorageURL)
if existingConfig.CompressionLevel >= -1 && existingConfig.CompressionLevel <= 9 {
duplicacy.LOG_INFO("STORAGE_FORMAT", "This storage is configured to use the pre-1.2.0 format")
} else if existingConfig.CompressionLevel != 100 {
duplicacy.LOG_ERROR("STORAGE_COMPRESSION", "This storage is configured with an invalid compression level %d", existingConfig.CompressionLevel)
return
} else if existingConfig.CompressionLevel != duplicacy.DEFAULT_COMPRESSION_LEVEL {
duplicacy.LOG_INFO("STORAGE_COMPRESSION", "Compression level: %d", existingConfig.CompressionLevel)
}
Expand Down

0 comments on commit cc482be

Please sign in to comment.