packages/electron/src/client/main.js
Function createMainClient
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createMainClient = (opts) => {
// check api key has been provided as we need it to create the FileStore
// which happens before the API key is validated
if (typeof opts.apiKey !== 'string') {
throw new Error('No Bugsnag API Key set')