Skip to content

Commit 5759015

Browse files
tryzniakpieh
authored andcommitted
Remove unnecessary async/await from a sync function (#7741)
* Remove unnecessary async/await from a sync function * Pointless commit Trigger a new AppVeyor run * Revert "Pointless commit" This reverts commit e647541.
1 parent 049ee42 commit 5759015

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/gatsby/src/bootstrap/load-plugins/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const flattenPlugins = plugins => {
3939

4040
module.exports = async (config = {}) => {
4141
// Collate internal plugins, site config plugins, site default plugins
42-
const plugins = await loadPlugins(config)
42+
const plugins = loadPlugins(config)
4343

4444
// Create a flattened array of the plugins
4545
let flattenedPlugins = flattenPlugins(plugins)

packages/gatsby/src/bootstrap/load-plugins/load.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function resolvePlugin(pluginName) {
8383
}
8484
}
8585

86-
module.exports = async (config = {}) => {
86+
module.exports = (config = {}) => {
8787
// Instantiate plugins.
8888
const plugins = []
8989

0 commit comments

Comments
 (0)