Skip to content

Commit

Permalink
refactor: un-needed promise
Browse files Browse the repository at this point in the history
  • Loading branch information
TonybynMp4 authored Apr 9, 2024
1 parent 181e1fc commit 1ccd616
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -653,9 +653,7 @@ lib.callback.register('qbx_vehicleshop:client:confirmTrade', function(vehicle, s
return input?[1]
end

local p = promise:new()
p:resolve(confirmTrade(confirmationText))
return Citizen.Await(p)
return Citizen.Await(confirmTrade(confirmationText))
end)

--- Thread to create blips
Expand Down

0 comments on commit 1ccd616

Please sign in to comment.