Skip to content

Commit badcf7e

Browse files
committed
fix lint
1 parent 4a2ce82 commit badcf7e

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

web_src/js/runstatus.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
import {svg} from './svg.js';
22

33
// retrieve a HTML string for given run status, size and additional classes
4-
export function runstatus(status, size = 16, className = '') {
4+
function runstatus(status, size = 16, className = '') {
55
switch (status) {
6-
case "success":
6+
case 'success':
77
return svg('octicon-check-circle-fill', size, className);
8-
case "skipped":
8+
case 'skipped':
99
return svg('octicon-skip', size, className);
10-
case "waiting":
10+
case 'waiting':
1111
return svg('octicon-clock', size, className);
12-
case "blocked":
12+
case 'blocked':
1313
return svg('octicon-blocked', size, className);
14-
case "running":
14+
case 'running':
1515
return svg('octicon-meter', size, className);
1616
default:
1717
return svg('octicon-x-circle-fill', size, className);
1818
}
1919
}
2020

21-
function spanclass(status){
21+
function spanclass(status) {
2222
switch (status) {
23-
case "success":
24-
return "green";
25-
case "skipped":
26-
return "ui text grey";
27-
case "waiting":
28-
return "ui text yellow";
29-
case "blocked":
30-
return "ui text yellow";
31-
case "running":
32-
return "ui text yellow";
23+
case 'success':
24+
return 'green';
25+
case 'skipped':
26+
return 'ui text grey';
27+
case 'waiting':
28+
return 'ui text yellow';
29+
case 'blocked':
30+
return 'ui text yellow';
31+
case 'running':
32+
return 'ui text yellow';
3333
default:
34-
return "red";
34+
return 'red';
3535
}
3636
}
3737

@@ -48,7 +48,7 @@ export const RunStatus = {
4848
return runstatus(this.status, this.size, this.className);
4949
},
5050
spanclass() {
51-
return spanclass(this.status)
51+
return spanclass(this.status);
5252
}
5353
},
5454

0 commit comments

Comments
 (0)