api/v0: replace one "if !" with "unless" for readability
This commit is contained in:
부모
05c8d5e493
커밋
d97ee5f57c
1개의 변경된 파일과 2개의 추가작업 그리고 2개의 파일을 삭제
|
@ -31,8 +31,8 @@ sub random_id ($self)
|
|||
|
||||
sub get ($self, %search)
|
||||
{
|
||||
croak "Exactly one of 'id' or 'display' must be defined" if
|
||||
!(defined($search{id}) ^^ defined($search{display}));
|
||||
croak "Exactly one of 'id' or 'display' must be defined" unless
|
||||
defined($search{id}) ^^ defined($search{display});
|
||||
|
||||
my $key = defined($search{id}) ? "id" : "display";
|
||||
my $where_clause = where_in($key, $search{$key}->@*);
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue