Skip to content

Commit 25653ca

Browse files
committed
A bunch of semi-colons
1 parent 0e9edd5 commit 25653ca

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

examples/follow-logs.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
const stream = require('stream');
22
const k8s = require('@kubernetes/client-node');
33

4-
const kc = new k8s.KubeConfig()
5-
kc.loadFromDefault()
4+
const kc = new k8s.KubeConfig();
5+
kc.loadFromDefault();
66

7-
const log = new k8s.Log(kc)
7+
const log = new k8s.Log(kc);
88

99
const logStream = new stream.PassThrough();
1010

1111
logStream.on('data', (chunk) => {
1212
// use write rather than console.log to prevent double line feed
1313
process.stdout.write(chunk);
14-
})
14+
});
1515

1616
log.log('default', 'pod1', 'container1', logStream, (err) => {console.log(err)}, {follow: true, tailLines: 50, pretty: false, timestamps: false})
1717
.then(req => {
1818
// disconnects after 5 seconds
1919
setTimeout(function(){
20-
req.abort()
21-
}, 5000)
22-
})
20+
req.abort();
21+
}, 5000);
22+
});
2323

0 commit comments

Comments
 (0)