Skip to content

Commit

Permalink
chore: typo semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
lgou2w committed Oct 8, 2021
1 parent 4cfc450 commit 87684ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ PicaComicAPI.prototype.fetchComicEpisodePages(payload: { token: string, comicId:
* }
* @return Stringify image url
*/
PicaComicAPI.prototype.stringifyImageUrl(payload: { fileServer: string; path: string }): string
PicaComicAPI.prototype.stringifyImageUrl(payload: { fileServer: string, path: string }): string
```

### .fetchImage
Expand All @@ -177,7 +177,7 @@ PicaComicAPI.prototype.stringifyImageUrl(payload: { fileServer: string; path: st
* }
* @return Duplex (Got stream)
*/
PicaComicAPI.prototype.fetchImage(payload: { fileServer: string; path: string }): Promise<Duplex>
PicaComicAPI.prototype.fetchImage(payload: { fileServer: string, path: string }): Promise<Duplex>
```

## License
Expand Down
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class PicaComicAPI {
.then(res => res.data)
}

stringifyImageUrl (image: { fileServer: string; path: string }): string {
stringifyImageUrl (image: { fileServer: string, path: string }): string {
const { path, fileServer } = image
const url = new URL(
`${fileServer.replace(/\/$/, '')}/static/${path.replace(/^\//, '')}`
Expand Down

0 comments on commit 87684ea

Please sign in to comment.