Skip to content

Commit 7a104ac

Browse files
committed
clean code
1 parent 5874a4d commit 7a104ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/translator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class Translator implements ITranslator{
1212

1313
adapter: Adapter;
1414

15-
constructor(key: string, secret: string, platform: string = 'Youdao') {
16-
this.adapter = new Adapters[platform](key, secret, platform);
15+
constructor(key: string, secret: string, platform: string) {
16+
this.adapter = new Adapters[platform](key, secret);
1717
}
1818

1919
public async translate(query: string): Promise<any> {

0 commit comments

Comments
 (0)