mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
ipsec: avoid if return, else return
This commit is contained in:
parent
933f935624
commit
0023784905
@ -626,11 +626,11 @@ function ipsec_convert_to_modp($index): string
|
||||
30 => 'ecp512bp',
|
||||
];
|
||||
|
||||
if (array_key_exists($index, $map)) {
|
||||
return $map[$index];
|
||||
} else {
|
||||
if (!array_key_exists($index, $map)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return $map[$index];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user