Skip to content

Commit 6aa86f2

Browse files
committedOct 20, 2020
Fix indentation in the readme
1 parent 3dd2273 commit 6aa86f2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed
 

‎readme.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,16 @@ const got = require('got');
107107
const pipeline = promisify(stream.pipeline);
108108

109109
(async () => {
110-
await pipeline(
111-
got.stream('https://sindresorhus.com'),
112-
fs.createWriteStream('index.html')
113-
);
114-
115-
// For POST, PUT, PATCH, and DELETE methods, `got.stream` returns a `stream.Writable`.
116-
await pipeline(
117-
fs.createReadStream('index.html'),
118-
got.stream.post('https://sindresorhus.com')
119-
);
110+
await pipeline(
111+
got.stream('https://sindresorhus.com'),
112+
fs.createWriteStream('index.html')
113+
);
114+
115+
// For POST, PUT, PATCH, and DELETE methods, `got.stream` returns a `stream.Writable`.
116+
await pipeline(
117+
fs.createReadStream('index.html'),
118+
got.stream.post('https://sindresorhus.com')
119+
);
120120
})();
121121
```
122122

@@ -882,12 +882,12 @@ got('https://api.github.com/some-endpoint', {
882882
beforeError: [
883883
error => {
884884
const {response} = error;
885-
if (response && response.body) {
885+
if (response && response.body) {
886886
error.name = 'GitHubError';
887887
error.message = `${response.body.message} (${response.statusCode})`;
888888
}
889889

890-
return error;
890+
return error;
891891
}
892892
]
893893
}

0 commit comments

Comments
 (0)
Please sign in to comment.