remove double await

main
Mike Fix 6 years ago
parent 2a9a212949
commit 9b69069279

@ -68,7 +68,7 @@ class Editor extends React.Component {
try { try {
// TODO fix this hack // TODO fix this hack
if (path.length >= 19 && path.indexOf('.') === -1 && this.context.gist) { if (path.length >= 19 && path.indexOf('.') === -1 && this.context.gist) {
const { code, language, config } = await await this.context.gist.get(path) const { code, language, config } = await this.context.gist.get(path)
if (typeof config === 'object') { if (typeof config === 'object') {
initialState = config initialState = config

Loading…
Cancel
Save