Skip to content

Commit 9c747a7

Browse files
committed
fix lint issues
Signed-off-by: CrazyMax <[email protected]>
1 parent c98baa7 commit 9c747a7

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

__tests__/meta.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2770,7 +2770,6 @@ describe('pr', () => {
27702770

27712771
describe('pr-head-sha', () => {
27722772
// prettier-ignore
2773-
// eslint-disable-next-line jest/expect-expect
27742773
test.each([
27752774
[
27762775
'pr01',
@@ -3911,7 +3910,6 @@ describe('raw', () => {
39113910

39123911
describe('json', () => {
39133912
// prettier-ignore
3914-
// eslint-disable-next-line jest/expect-expect
39153913
test.each([
39163914
[
39173915
'json01',
@@ -4275,7 +4273,6 @@ describe('json', () => {
42754273

42764274
describe('bakeFile', () => {
42774275
// prettier-ignore
4278-
// eslint-disable-next-line jest/expect-expect
42794276
test.each([
42804277
[
42814278
'bakeFile01',
@@ -4797,7 +4794,6 @@ describe('bakeFile', () => {
47974794

47984795
describe('bakeFileTagsLabels', () => {
47994796
// prettier-ignore
4800-
// eslint-disable-next-line jest/expect-expect
48014797
test.each([
48024798
[
48034799
'bakeFileTagsLabels01',
@@ -4855,7 +4851,6 @@ describe('bakeFileTagsLabels', () => {
48554851

48564852
describe('sepTags', () => {
48574853
// prettier-ignore
4858-
// eslint-disable-next-line jest/expect-expect
48594854
test.each([
48604855
[
48614856
'sepTags01',
@@ -4888,13 +4883,10 @@ describe('sepTags', () => {
48884883
"user/app:dev,user/app:my,user/app:custom,user/app:tags"
48894884
]
48904885
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, expTags: string) => {
4891-
48924886
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures', envFile)));
48934887

48944888
const toolkit = new Toolkit();
4895-
48964889
const repo = await toolkit.github.repoData();
4897-
48984890
const meta = new Meta({...getInputs(), ...inputs}, await getContext(ContextSource.workflow, toolkit), repo);
48994891

49004892
expect(meta.getTags().join(inputs.sepTags)).toEqual(expTags);

src/meta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ export class Meta {
376376
if (hp.body.length == 1 && hp.body[0].type == 'MustacheStatement') {
377377
return hp.body[0]['path']['parts'].length == 1 && hp.body[0]['path']['parts'][0] == 'raw';
378378
}
379-
} catch (err) {
379+
} catch {
380380
return false;
381381
}
382382
return false;

0 commit comments

Comments
 (0)