Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
valentino-amadeus committed Apr 20, 2021
1 parent d6b1941 commit 0de7c4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/modules/abtest/start.ts
Expand Up @@ -44,6 +44,4 @@ export default async () => {
}
logger.info(`Workspace ${chalk.green(String(workspace))} in A/B test`)
logger.info(`You can stop the test using ${chalk.blue('vtex workspace abtest finish')}`)

return
}
10 changes: 5 additions & 5 deletions src/modules/abtest/utils.ts
Expand Up @@ -27,11 +27,6 @@ export const formatDuration = (durationInMinutes: number) => {
return `${days} days, ${hours} hours and ${minutes} minutes`
}

export const checkABTester = async () => {
const abTesterManifest = await installedABTester()
checkABTesterVersion(abTesterManifest.version)
}

const installedABTester = async (): Promise<AppManifest> => {
try {
return await apps.getApp('vtex.ab-tester@x')
Expand All @@ -56,6 +51,11 @@ which is of an excessively old version. Please, use a version newer than ${chalk
}
}

export const checkABTester = async () => {
const abTesterManifest = await installedABTester()
checkABTesterVersion(abTesterManifest.version)
}

export const promptProductionWorkspace = async (promptMessage: string): Promise<string> => {
const workspaces = createWorkspacesClient()
const productionWorkspaces = await workspaces.list(account).then(
Expand Down

0 comments on commit 0de7c4e

Please sign in to comment.