From 9b690692792d3b662a9ae6ead6ad2bfaa47c274b Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Thu, 7 Mar 2019 14:31:16 -0800 Subject: [PATCH] remove double await --- components/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Editor.js b/components/Editor.js index cefd8e7..6049cdf 100644 --- a/components/Editor.js +++ b/components/Editor.js @@ -68,7 +68,7 @@ class Editor extends React.Component { try { // TODO fix this hack 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') { initialState = config