Skip to content

Commit

Permalink
hotfix: missing bracket
Browse files Browse the repository at this point in the history
  • Loading branch information
zcrossoverz committed Jun 27, 2023
1 parent 8f8fe29 commit df9080d
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions src/lib/manga.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* eslint-disable @typescript-eslint/no-empty-function */
import { MangaType } from "../constants/manga";
import { Nettruyen } from "../lib/nettruyen";
import { AbstractMangaFactory, constructorParams } from "../types/type";
import { AsuraScans } from "./asurascans";
import { Blogtruyen } from "./blogtruyen";
import { Toonily } from "./toonily";
import { MangaType } from '../constants/manga';
import { Nettruyen } from '../lib/nettruyen';
import { AbstractMangaFactory, constructorParams } from '../types/type';
import { AsuraScans } from './asurascans';
import { Blogtruyen } from './blogtruyen';
import { Toonily } from './toonily';

export class Manga {
constructor() {}
Expand All @@ -27,24 +27,23 @@ export class Manga {
);
}


case MangaType.ASURASCANS: {
return new AsuraScans(
params !== undefined && params.baseUrl !== undefined
? params.baseUrl
: "https://www.asurascans.com"
);
}
case MangaType.BLOGTRUYEN: {
return new Blogtruyen(
params !== undefined && params.baseUrl !== undefined
? params.baseUrl
: "https://blogtruyen.vn"
);
}
default: {
return new Nettruyen("https://www.nettruyenmax.com");
}

}
case MangaType.ASURASCANS: {
return new AsuraScans(
params !== undefined && params.baseUrl !== undefined
? params.baseUrl
: 'https://www.asurascans.com'
);
}
case MangaType.BLOGTRUYEN: {
return new Blogtruyen(
params !== undefined && params.baseUrl !== undefined
? params.baseUrl
: 'https://blogtruyen.vn'
);
}
default: {
return new Nettruyen('https://www.nettruyenmax.com');
}
}
}
}

0 comments on commit df9080d

Please sign in to comment.