Skip to content

Commit

Permalink
I UPDATED SOME OLD CODE
Browse files Browse the repository at this point in the history
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

What an example of old code looked like:

```js
someFunction(function (err, data) {
    ...
    console.log(err)
})
```

What the new code looks like:

```js
try {
    await someFunction();
} catch (err) {
    console.error(err);
}
```
  • Loading branch information
ZebTheWizard committed Apr 11, 2020
1 parent e191b90 commit 1e5aedd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "discord-commits",
"version": "1.0.0",
"description": "",
"description": "a github action that nicely displays multiple commits in discord based on tempaltes.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down

0 comments on commit 1e5aedd

Please sign in to comment.