mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 14:23:41 +01:00
Remove one unnecessary string-to-array-to-string from get_curve_name().
This commit is contained in:
parent
9ea1749f6c
commit
5c09af67fd
@ -324,8 +324,7 @@ get_curve_name() {
|
|||||||
for c in "${CURVES_MAP[@]}"; do
|
for c in "${CURVES_MAP[@]}"; do
|
||||||
if [[ "$c" =~ $identifier ]]; then
|
if [[ "$c" =~ $identifier ]]; then
|
||||||
verbose "$c matches identifier $identifier"
|
verbose "$c matches identifier $identifier"
|
||||||
local map=(${c// / })
|
echo "${c%% *}"
|
||||||
echo ${map[0]}
|
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user