Skip to content

Commit

Permalink
Merge pull request #1627 from mifi/patch-1
Browse files Browse the repository at this point in the history
remove unneeded IIFE
  • Loading branch information
richardm-stripe committed Nov 29, 2022
2 parents 547d9d3 + f73f7d8 commit a140886
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,11 @@ Or using ES modules and `async`/`await`:
import Stripe from 'stripe';
const stripe = new Stripe('sk_test_...');

(async () => {
const customer = await stripe.customers.create({
email: 'customer@example.com',
});
const customer = await stripe.customers.create({
email: 'customer@example.com',
});

console.log(customer.id);
})();
console.log(customer.id);
```

### Usage with TypeScript
Expand Down

0 comments on commit a140886

Please sign in to comment.