Browse Source

chore: cleaned up warning message for always true, redundant check

document-upload-removal-layout-update
nic 10 months ago
parent
commit
5758f1d5f0
  1. 5
      internal/handlers/web/documents.go

5
internal/handlers/web/documents.go

@ -416,10 +416,7 @@ func UploadDocumentsHandler(w http.ResponseWriter, r *http.Request) {
uploadDuration := time.Since(uploadStart) uploadDuration := time.Since(uploadStart)
// Get the actual size that was uploaded // Get the actual size that was uploaded
var fileSize int64 fileSize := sizeTracker.Size()
if sizeTracker != nil {
fileSize = sizeTracker.Size()
}
// Verify the upload size matches the expected file size // Verify the upload size matches the expected file size
sizeMatch := true sizeMatch := true

Loading…
Cancel
Save