2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-12-25 04:03:41 +01:00

Remove one unnecessary string-to-array-to-string from get_curve_name().

This commit is contained in:
Richard Soderberg 2015-09-05 04:10:58 -07:00
parent 9ea1749f6c
commit 5c09af67fd

View File

@ -324,8 +324,7 @@ get_curve_name() {
for c in "${CURVES_MAP[@]}"; do
if [[ "$c" =~ $identifier ]]; then
verbose "$c matches identifier $identifier"
local map=(${c// / })
echo ${map[0]}
echo "${c%% *}"
return
fi
done