Fix remaining lint errors (#19166)

This commit is contained in:
Andy
2017-08-20 15:37:53 -07:00
committed by GitHub
parent 83230ae14e
commit 924fafffc0
861 changed files with 2641 additions and 2198 deletions

View File

@@ -72,7 +72,7 @@ import * as ImportUsingES6Syntax from 'form-data';
const buffer = new Buffer('');
const options = {
header: CRLF + '--' + form.getBoundary() + CRLF + 'X-Custom-Header: 123' + CRLF + CRLF,
header: `${CRLF}--${form.getBoundary()}${CRLF}X-Custom-Header: 123${CRLF}${CRLF}`,
knownLength: 1
};
@@ -114,7 +114,8 @@ import * as ImportUsingES6Syntax from 'form-data';
request.post({ url: 'http://service.com/upload', formData }, (err, httpResponse, body) => {
if (err) {
return console.error('upload failed:', err);
console.error('upload failed:', err);
return;
}
console.log('Upload successful! Server responded with:', body);
});