Skip to content

Commit

Permalink
removed unneeded .Then() in internal code
Browse files Browse the repository at this point in the history
  • Loading branch information
tinkerer-red committed Oct 12, 2024
1 parent 302f338 commit 6787f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/__privPromise/__privPromise.gml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function __registerAsyncHandler(_async_type, _async_id, _resolve_callback, _reje

if (_resolve_callback == undefined) _resolve_callback = function(){};

var _promise = Promise.Then(_resolve_callback).Catch(_reject_callback);
var _promise = Promise(_resolve_callback).Catch(_reject_callback);
_promise.state = PROMISE_STATE.PAUSED;

var _resolve = method(_promise, function(_async_load){
Expand Down

0 comments on commit 6787f73

Please sign in to comment.