aboutsummaryrefslogtreecommitdiff
path: root/hotline/transaction_handlers.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2023-04-19 17:21:18 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2023-04-19 17:21:18 -0700
commitaeb97482e923b5c441dd59e3ca4a7e275ac2b4c2 (patch)
treebf6124b8dc1ae9e06b9328f4e22495fe51289232 /hotline/transaction_handlers.go
parent548d4bb93fe32d24b3fbc491a01e5c6127be9289 (diff)
Ran 'golangci-lint run -E gocritic,whitespace --fix' 🤞
Diffstat (limited to 'hotline/transaction_handlers.go')
-rw-r--r--hotline/transaction_handlers.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/hotline/transaction_handlers.go b/hotline/transaction_handlers.go
index 813d25c..137b2a0 100644
--- a/hotline/transaction_handlers.go
+++ b/hotline/transaction_handlers.go
@@ -808,7 +808,7 @@ func HandleUpdateUser(cc *ClientConn, t *Transaction) (res []Transaction, err er
}
newAccess := accessBitmap{}
- copy(newAccess[:], getField(FieldUserAccess, &subFields).Data[:])
+ copy(newAccess[:], getField(FieldUserAccess, &subFields).Data)
// Prevent account from creating new account with greater permission
for i := 0; i < 64; i++ {
@@ -846,7 +846,7 @@ func HandleNewUser(cc *ClientConn, t *Transaction) (res []Transaction, err error
}
newAccess := accessBitmap{}
- copy(newAccess[:], t.GetField(FieldUserAccess).Data[:])
+ copy(newAccess[:], t.GetField(FieldUserAccess).Data)
// Prevent account from creating new account with greater permission
for i := 0; i < 64; i++ {
@@ -1605,7 +1605,6 @@ func HandleUploadFile(cc *ClientConn, t *Transaction) (res []Transaction, err er
// client has requested to resume a partially transferred file
if transferOptions != nil {
-
fileInfo, err := cc.Server.FS.Stat(fullFilePath + incompleteFileSuffix)
if err != nil {
return res, err