diff options
| author | Shinigami <[email protected]> | 2023-04-03 21:14:12 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-03 19:14:12 +0000 |
| commit | cddbb959f13aa29a7264174b1fc4eaa4271cf900 (patch) | |
| tree | 8300b70595bb2effd9f4ac22dd98203c61d1f3c5 /scripts/apidoc/diff.ts | |
| parent | 71232ba04616e9ef098b7bf088b07f05b014e1d9 (diff) | |
| download | faker-cddbb959f13aa29a7264174b1fc4eaa4271cf900.tar.xz faker-cddbb959f13aa29a7264174b1fc4eaa4271cf900.zip | |
chore: activate eslint no-else-return (#2009)
Diffstat (limited to 'scripts/apidoc/diff.ts')
| -rw-r--r-- | scripts/apidoc/diff.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/apidoc/diff.ts b/scripts/apidoc/diff.ts index 913062c8..654f44b0 100644 --- a/scripts/apidoc/diff.ts +++ b/scripts/apidoc/diff.ts @@ -35,11 +35,7 @@ async function loadLocal(path: string): Promise<DocsApiDiffIndex> { * @param source The source to load the diff index from. */ async function load(source: string): Promise<DocsApiDiffIndex> { - if (source.startsWith('https://')) { - return loadRemote(source); - } else { - return loadLocal(source); - } + return source.startsWith('https://') ? loadRemote(source) : loadLocal(source); } /** |
