diff --git a/src/sender/sender.go b/src/sender/sender.go index 5b78ac6..70c3db6 100644 --- a/src/sender/sender.go +++ b/src/sender/sender.go @@ -27,7 +27,7 @@ func SendFiles(ctx context.Context, targetPath string) error { return fmt.Errorf("preparing file list payload: %w", err) } - if err := fileutils.ChangeDirectory(directory); err != nil { + if err = fileutils.ChangeDirectory(directory); err != nil { return fmt.Errorf("changing directory: %w", err) }