From 4016a0abeff4c5bf3969c2de899914e4ae0d248a Mon Sep 17 00:00:00 2001 From: DanyLE Date: Tue, 23 Aug 2022 01:20:05 +0200 Subject: [PATCH] code refactor --- os/libs/vfs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/libs/vfs.lua b/os/libs/vfs.lua index 80e176a..a57ab74 100644 --- a/os/libs/vfs.lua +++ b/os/libs/vfs.lua @@ -152,7 +152,7 @@ vfs.upload = function(path) local file = m.."/"..REQUEST["upload-"..index..".file"] local ret = ulib.move(REQUEST["upload-"..index..".tmp"], file) if not ret then - local ret = ulib.send_file(REQUEST["upload-"..index..".tmp"], file) + ret = ulib.send_file(REQUEST["upload-"..index..".tmp"], file) end if not ret then return false, "Unable to copy file"