Skip to content

Commit

Permalink
Remove shadowing "err"
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeRock94 committed Jul 13, 2024
1 parent 0728749 commit 5c0f659
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -604,9 +604,9 @@ QBCore.Functions.CreateCallback('qb-phone:server:UploadToFivemerr', function(sou
encoding = 'png'
}, function(err, data)
if err then return cb(nil) end
PerformHttpRequest(WebHook, function(err, response)
if err ~= 200 then
print("^1--- ERROR UPLOADING IMAGE: " .. err .. " ---^7")
PerformHttpRequest(WebHook, function(status, response)
if status ~= 200 then
print("^1--- ERROR UPLOADING IMAGE: " .. status .. " ---^7")
cb(nil)
end

Expand Down

0 comments on commit 5c0f659

Please sign in to comment.