From f5f50b9d41693542aa785f2ed0b61f53fc7f72d8 Mon Sep 17 00:00:00 2001 From: netbenix Date: Tue, 22 Feb 2022 18:37:45 +0100 Subject: [PATCH] style(Compression): Remove unnecessary type type declarations --- Compressor/Compression.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Compressor/Compression.go b/Compressor/Compression.go index c47c4fd..90097bd 100644 --- a/Compressor/Compression.go +++ b/Compressor/Compression.go @@ -14,7 +14,7 @@ import ( "time" ) -func CreateBakFile(fileName string, folderPath string, destinationPath string, backupName string) string { +func CreateBakFile(fileName, folderPath, destinationPath, backupName string) string { logger := Logging.DetailedLogger("Compression", "CreateBakFile") pathToFile := destinationPath + string(os.PathSeparator) + fileName + ".bak" @@ -30,7 +30,7 @@ func CreateBakFile(fileName string, folderPath string, destinationPath string, b return pathToFile } -func compress(fileToWrite *os.File, folderPath string, backupName string) { +func compress(fileToWrite *os.File, folderPath, backupName string) { logger := Logging.DetailedLogger("Gzip", "compress") zr, _ := gzip.NewWriterLevel(fileToWrite, flate.BestCompression)