Skip to content

Commit 7fa7fd9

Browse files
committed
Don't show arg name on both sides of Changed
1 parent d7ce0c7 commit 7fa7fd9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

app.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,11 @@ function append_li(ul, ...args) {
134134
}
135135
}
136136

137-
function append_li_migrate(ul, from, to) {
137+
function append_li_migrate(ul, from, to, name) {
138138
const li = document.createElement('li');
139+
if (name !== undefined) {
140+
li.appendChild(document.createTextNode(`${name} `));
141+
}
139142
{
140143
const span = document.createElement('span');
141144
span.className = 'old';
@@ -234,11 +237,7 @@ function extend_change_list(list, items) {
234237
for (arg of item.before.fields) {
235238
const current = new_args[arg.name];
236239
if (typeof current !== 'undefined' && arg.type !== current.type) {
237-
append_li_migrate(
238-
ul,
239-
`${arg.name}:${arg.type}`,
240-
`${current.name}:${current.type}`
241-
);
240+
append_li_migrate(ul, arg.type, current.type, arg.name);
242241
}
243242
}
244243

0 commit comments

Comments
 (0)