aboutsummaryrefslogtreecommitdiff
path: root/hotline/file_transfer.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-17 19:51:37 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-17 19:51:37 -0700
commitf8e4cd540b87de3e308ec18a2b040b284a741522 (patch)
tree6d8b1ad0bd04cc19ecaf276e271caaef4d0866f4 /hotline/file_transfer.go
parent45ca5d60383cbe270624c713b916da29af7ba88f (diff)
Clean up various linter warnings
Diffstat (limited to 'hotline/file_transfer.go')
-rw-r--r--hotline/file_transfer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hotline/file_transfer.go b/hotline/file_transfer.go
index 7c24109..194e8b9 100644
--- a/hotline/file_transfer.go
+++ b/hotline/file_transfer.go
@@ -1,10 +1,10 @@
package hotline
import (
+ "crypto/rand"
"encoding/binary"
"fmt"
"math"
- "math/rand"
"path/filepath"
"sync"
)
@@ -51,7 +51,7 @@ func (wc *WriteCounter) Write(p []byte) (int, error) {
func (cc *ClientConn) newFileTransfer(transferType int, fileName, filePath, size []byte) *FileTransfer {
var transactionRef [4]byte
- rand.Read(transactionRef[:])
+ _, _ = rand.Read(transactionRef[:])
ft := &FileTransfer{
FileName: fileName,