Skip to content

Commit

Permalink
Fixes the formatting in a few files
Browse files Browse the repository at this point in the history
  • Loading branch information
ecampidoglio committed Sep 28, 2021
1 parent 693be15 commit a42ed2f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
1 change: 0 additions & 1 deletion __tests__/cake.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ describe('When failing to bootstrap a script using the local Cake tool', () => {
});
});


describe('When running a script successfully using the tool manifest', () => {
const fakeExec = exec as jest.MockedFunction<typeof exec>;

Expand Down
18 changes: 9 additions & 9 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ function parseNameAndValue(line: string): [string, string] {
return [nameValue[0].trim(), nameValue[1].trim()];
}

function getInputCakeVersion() : string | boolean {
function getInputCakeVersion(): string | boolean {
const version = core.getInput('cake-version');
switch (version.toLowerCase()) {
case 'tool-manifest':
return true;
case 'latest':
return false;
default:
return version || false;
}
switch (version.toLowerCase()) {
case 'tool-manifest':
return true;
case 'latest':
return false;
default:
return version || false;
}
}
7 changes: 3 additions & 4 deletions src/cakeToolSettings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint @typescript-eslint/no-unused-vars: off */
import { ToolsDirectory } from './toolsDirectory';
/* eslint @typescript-eslint/no-unused-vars: error */
Expand All @@ -8,9 +7,9 @@ export class CakeToolSettings {
readonly useToolManifest: boolean;

constructor(
workingDirectory: ToolsDirectory | undefined,
useToolManifest: boolean = false
) {
workingDirectory: ToolsDirectory | undefined,
useToolManifest: boolean = false
) {
this.workingDirectory = workingDirectory;
this.useToolManifest = useToolManifest;
}
Expand Down

0 comments on commit a42ed2f

Please sign in to comment.