Skip to content

Commit

Permalink
Merge pull request #22 from rdipardo/refactor/fall-through-in-switch-…
Browse files Browse the repository at this point in the history
…case

Allow Lazarus versions to fall through in switch-case
  • Loading branch information
gcarreno authored Jun 18, 2023
2 parents 26c9265 + aaa6055 commit 9f3e78c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 120 deletions.
120 changes: 0 additions & 120 deletions src/Lazarus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,152 +306,32 @@ export class Lazarus{
await this._downloadLazarus();
break;
case '2.2.6':
await this._downloadLazarus();
break;
case '2.2.4':
await this._downloadLazarus();
break;
case '2.2.2':
await this._downloadLazarus();
break;
case '2.2.0':
await this._downloadLazarus();
break;
case '2.0.12':
await this._downloadLazarus();
break;
case '2.0.10':
await this._downloadLazarus();
break;
case '2.0.8':
await this._downloadLazarus();
break;
case '2.0.6':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '2.0.4':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '2.0.2':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '2.0.0':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '1.8.4':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '1.8.2':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '1.8.0':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '1.6.4':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '1.6.2':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '1.6':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '1.4.4':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '1.4.2':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '1.4':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '1.2.6':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '1.2.4':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '1.2.2':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '1.2':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '1.0.14':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
} else {
await this._downloadLazarus();
}
break;
case '1.0.12':
if (this._Platform == 'darwin'){
throw new Error('GitHub runners do not support Lazarus below 2.0.8 on macos');
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
"strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
"noFallthroughCasesInSwitch": false, /* Ignore switch cases that omit the 'break' statement. */
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
},
"exclude": ["__tests__", "lib", "node_modules"]
Expand Down

0 comments on commit 9f3e78c

Please sign in to comment.