Dedent this code by doing an early return instead of if.
This commit is contained in:
parent
faf0c62426
commit
00ad82e07c
1 changed files with 24 additions and 24 deletions
|
@ -396,8 +396,9 @@ function add_searchtag(box, value, inputted_list, li_class)
|
|||
remove_searchtag(box, existing_tag, inputted_list);
|
||||
}
|
||||
}
|
||||
if (!already_have)
|
||||
{
|
||||
if (already_have)
|
||||
{return;}
|
||||
|
||||
inputted_list.push(value);
|
||||
var new_li = document.createElement("li");
|
||||
new_li.className = li_class;
|
||||
|
@ -425,7 +426,6 @@ function add_searchtag(box, value, inputted_list, li_class)
|
|||
box.blur();
|
||||
box.focus();
|
||||
}
|
||||
}
|
||||
function remove_searchtag(li_member, value, inputted_list)
|
||||
{
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue