Apply clang format

This commit is contained in:
Simon Schneegans
2020-08-15 20:51:58 +02:00
parent 1e34d09cdf
commit 87f2cd9c28
2 changed files with 14 additions and 18 deletions

3
.clang-format Normal file
View File

@@ -0,0 +1,3 @@
BasedOnStyle: Google
AlignConsecutiveAssignments: true
KeepEmptyLinesAtTheStartOfBlocks: true

View File

@@ -19,7 +19,6 @@ try {
const style = core.getInput('style');
const cacheSeconds = core.getInput('cacheSeconds');
if (labelColor != '') {
description.labelColor = labelColor;
}
@@ -80,14 +79,8 @@ try {
},
res => {
let body = '';
res.on('data', data => {
body += data;
});
res.on('end', () => {
console.log('result:' + body);
});
res.on('data', data => body += data);
res.on('end', () => console.log('result:' + body));
});
req.write(data);