Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit17ed740

Browse files
committed
Dont json parse nothing
1 parentfcfadaa commit17ed740

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎dist/index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,9 +1102,9 @@ function run() {
11021102
try{
11031103
constsince=core.getInput('since')||'1 day ago';
11041104
constcwd=core.getInput('cwd')||'.';
1105-
constsort=JSON.parse(core.getInput('sort'))||[];
1105+
constsort=core.getInput('sort') ?JSON.parse(core.getInput('sort')):[];
11061106
constinstall=!!core.getInput('install')||false;
1107-
constonly=JSON.parse(core.getInput('only'));
1107+
constonly=core.getInput('only') ?JSON.parse(core.getInput('only')) :[];
11081108
constpreview=!!core.getInput('preview')||false;
11091109
constsettings={
11101110
since,

‎src/main.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ async function run(): Promise<void> {
55
try{
66
constsince=core.getInput('since')||'1 day ago'
77
constcwd=core.getInput('cwd')||'.'
8-
constsort=JSON.parse(core.getInput('sort'))||[]
8+
constsort=core.getInput('sort') ?JSON.parse(core.getInput('sort')):[]
99
constinstall=!!core.getInput('install')||false
10-
constonly=JSON.parse(core.getInput('only'))
10+
constonly=core.getInput('only') ?JSON.parse(core.getInput('only')) :[]
1111
constpreview=!!core.getInput('preview')||false
1212

1313
constsettings:RunSettings={

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp