Skip to content

Commit

Permalink
remove unnecessary conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Nov 1, 2024
1 parent a23b028 commit 4e57a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/upload_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (s *serverImp) prepareUploadAPIHandler(w http.ResponseWriter, r *http.Reque
fileNamesRWMutex.Unlock()

if strings.HasSuffix(fileInfo.FileName, ".txt") {
s.log.Info("TXT file content preview", "preview", string(fileInfo.Preview))
s.log.Info("TXT file content preview", "preview", fileInfo.Preview)
if s.conf.Receive.Clipboard {
err := clipboard.WriteAll(fileInfo.Preview)
if err != nil {
Expand Down

0 comments on commit 4e57a1a

Please sign in to comment.