Skip to content

Commit bfa8d60

Browse files
committed
fix linting
1 parent 7507add commit bfa8d60

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ There are a few things to keep in mind when writing your action code:
9393
In `main.ts`, you will see that the action is run in an `async` function.
9494

9595
```javascript
96-
import * as core from '@actions/core'
96+
import * as core from '@actions/core';
9797
//...
9898

9999
async function run() {
100100
try {
101101
//...
102102
} catch (error) {
103-
core.setFailed(error.message)
103+
core.setFailed(error.message);
104104
}
105105
}
106106
```

__fixtures__/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ export const setFailed = jest.fn<typeof core.setFailed>();
1111
export const warning = jest.fn<typeof core.warning>();
1212
export const startGroup = jest.fn<typeof core.startGroup>();
1313
export const endGroup = jest.fn<typeof core.endGroup>();
14-
export const isDebug = jest.fn<typeof core.isDebug>();
14+
export const isDebug = jest.fn<typeof core.isDebug>();

src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ export const runAction = async (input: Input): Promise<void> => {
2929
let filesToCheck: string[] = [];
3030
core.startGroup(`Loading files to check.`);
3131
if (input.files) {
32-
filesToCheck = input.files.split(' ').map((file) => file.startsWith('/') ? file : `/${file}`);
32+
filesToCheck = input.files
33+
.split(' ')
34+
.map((file) => (file.startsWith('/') ? file : `/${file}`));
3335
} else {
3436
filesToCheck = await (await glob.create('*')).glob();
3537
if (input['include-gitignore'] === true) {

0 commit comments

Comments
 (0)