Skip to content

Commit 6574555

Browse files
Fix suggestions
1 parent e772e14 commit 6574555

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"devDependencies": {
3737
"@babel/core": "^7.15.0",
3838
"@rollup/plugin-babel": "^5.3.0",
39-
"@rollup/plugin-commonjs": "^20.0.0",
4039
"@rollup/plugin-json": "^4.1.0",
4140
"@rollup/plugin-node-resolve": "^13.0.4",
4241
"@types/archiver": "^5.1.1",

rollup.config.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import commonjs from '@rollup/plugin-commonjs'
21
import { babel } from '@rollup/plugin-babel'
32
import typescript from 'rollup-plugin-typescript2'
43

@@ -12,8 +11,7 @@ export default {
1211
}],
1312
plugins: [
1413
typescript(),
15-
babel({ babelHelpers: 'bundled' }),
16-
commonjs()
14+
babel({ babelHelpers: 'bundled' })
1715
],
1816
external: [
1917
'fs',

src/auth.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export async function auth (): Promise<Config> {
103103
}
104104
}
105105

106-
if (config != null) {
106+
if (config !== undefined) {
107107
resolve(config)
108108
return
109109
}

src/p4d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface Response {
1212
data: string
1313
}
1414

15-
async function doit (gameId: string, filename: string, name: string, notes: string | undefined, makePublic: boolean, config: Config): Promise<Response> {
15+
async function doit (gameId: string, filename: string, name: string, notes: string|undefined, makePublic: boolean, config: Config): Promise<Response> {
1616
return await new Promise<Response>((resolve, reject) => {
1717
if (config.access_token === undefined) {
1818
return reject(new Error('No access token found'))

0 commit comments

Comments
 (0)