Skip to content

Commit

Permalink
chore: dropping lodash.once as per #1728 and using memoize-one
Browse files Browse the repository at this point in the history
  • Loading branch information
JGAntunes committed Jan 20, 2021
1 parent 8bc2d33 commit e3cf50c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/get-global-config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const Configstore = require('configstore')
const { memoizeOne } = require('memoize-one')
const { once } = require('lodash')
const { v4: uuidv4 } = require('uuid')

const { readFileAsync } = require('../lib/fs')
Expand Down Expand Up @@ -30,4 +29,4 @@ const getGlobalConfig = async function () {
}

// Memoise config result so that we only load it once
module.exports = once(getGlobalConfig)
module.exports = memoizeOne(getGlobalConfig)

0 comments on commit e3cf50c

Please sign in to comment.