fixup! fixup! fixup! fixup! fixup! fixup! fixup! chore(node): apply lint

This commit is contained in:
Simon Schick
2018-09-26 14:54:22 +02:00
parent 2c2446db24
commit a2bdb7872f
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ interface MyOptions {
// exports should work same as module.exports
// assigning exports is an error in node, hence the cast
(<any>global).exports = (grunt: IGrunt) => {
(global as any).exports = (grunt: IGrunt) => {
// Project configuration.
grunt.initConfig({

View File

@@ -44,7 +44,7 @@ http.createServer((req, res) => {
} else if (pLen === 2 && p[1].indexOf('code') === 0) {
/** Github sends auth code so that access_token can be obtained */
/** To obtain and parse code='...' from code?code='...' */
const qsObj = <{ code: string }> qs.parse(p[1].split('?')[1]);
const qsObj = qs.parse(p[1].split('?')[1]) as { code: string };
/** Obtaining access_token */
oauth2.getOAuthAccessToken(