Skip to content

Commit e341fbe

Browse files
committed
prettify globals
1 parent 0ceb4af commit e341fbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/globals.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
import qs from 'querystring'
44

55
const root = 'https://stolaf.api.frogpond.tech/v1'
6-
export const API = (pth: string, query: ?Object=null) => {
6+
export const API = (pth: string, query: ?Object = null) => {
77
if (process.env.NODE_ENV !== 'production') {
88
if (!pth.startsWith('/')) {
99
throw new Error('invalid path requested from the api!')
1010
}
1111
}
12-
let url = root + pth
12+
let url = root + pth
1313
if (query) {
1414
url += `?${qs.stringify(query)}`
1515
}

0 commit comments

Comments
 (0)