Skip to content

Commit

Permalink
Merge pull request #560 from atc0005/fix-misc-govet-linting-errors-st…
Browse files Browse the repository at this point in the history
…able-branch

Fix govet linting errors raised by updated linter
  • Loading branch information
atc0005 authored Aug 20, 2024
2 parents 1e80107 + 829eae7 commit cc3e9db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/paths/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
package paths

import (
"errors"
"fmt"
"io"
"log"
Expand Down Expand Up @@ -271,7 +272,7 @@ func BackupFile(sourceFilename string, destinationDirectory string) error {
sourceFileStat.Size(),
)
log.Println(sizeCopiedMismatchMsg)
return fmt.Errorf(sizeCopiedMismatchMsg)
return errors.New(sizeCopiedMismatchMsg)
}

// copy was successful, we should cleanup and log (DEBUG) how much data
Expand Down

0 comments on commit cc3e9db

Please sign in to comment.