Skip to content

Commit 69be4ab

Browse files
committed
remove useless else
1 parent c1a0e6e commit 69be4ab

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

utils/FactoryDeployer.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,10 @@ export class FactoryDeployer {
3939
call?: string,
4040
): Promise<string> {
4141
await this.initFactory();
42-
4342
if (this.factoryType === 'createx') {
44-
return this.deployWithCreateX(contractFactory, constructorArgs, call);
45-
} else {
46-
return this.deployWithGenericFactory(contractFactory, constructorArgs, call);
43+
return await this.deployWithCreateX(contractFactory, constructorArgs, call);
4744
}
45+
return await this.deployWithGenericFactory(contractFactory, constructorArgs, call);
4846
}
4947

5048
/**

0 commit comments

Comments
 (0)