Skip to content

Commit

Permalink
chore: Format
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Nov 18, 2024
1 parent ca11038 commit 678c549
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react-native-nitro-modules/cpp/core/Promise.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ class Promise final {
*/
static std::shared_ptr<Promise> awaitFuture(std::future<TResult>&& future) {
auto sharedFuture = std::make_shared<std::future<TResult>>(std::move(future));
return async([sharedFuture = std::move(sharedFuture)]() {
return sharedFuture->get();
});
return async([sharedFuture = std::move(sharedFuture)]() { return sharedFuture->get(); });
}

/**
Expand Down

0 comments on commit 678c549

Please sign in to comment.