mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-30 19:18:45 -06:00
fix lint error
This commit is contained in:
@@ -11,7 +11,7 @@ Promise = require("bluebird")
|
||||
meta = require("./meta")
|
||||
la = require("lazy-ass")
|
||||
check = require("check-more-types")
|
||||
const { configFromEnvOrJsonFile } = require('@cypress/env-or-json-file')
|
||||
configFromEnvOrJsonFile = require('@cypress/env-or-json-file').configFromEnvOrJsonFile
|
||||
|
||||
fs = Promise.promisifyAll(fs)
|
||||
|
||||
@@ -35,12 +35,11 @@ getUploadNameByOs = (os) ->
|
||||
getS3Credentials = () ->
|
||||
key = path.join('support', '.aws-credentials.json')
|
||||
config = configFromEnvOrJsonFile(key)
|
||||
if (!config) {
|
||||
if !config
|
||||
console.error('⛔️ Cannot find AWS credentials')
|
||||
console.error('Using @cypress/env-or-json-file module')
|
||||
console.error('and key', key)
|
||||
throw new Error('AWS config not found')
|
||||
}
|
||||
config
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user