chore: Fix typos for var names in formatSSLFingerprintColumns

This commit is contained in:
Nick Bolton 2025-11-10 13:30:11 +00:00
parent 63026752b5
commit 477c7b07e5

View file

@ -148,23 +148,23 @@ int getCertLength(const std::string &path)
QString formatSSLFingerprintColumns(const QByteArray &fingerprint) QString formatSSLFingerprintColumns(const QByteArray &fingerprint)
{ {
auto kmaxColumns = 24; auto kMaxColumns = 24;
QString hex = fingerprint.toHex(':').toUpper(); QString hex = fingerprint.toHex(':').toUpper();
if (hex.isEmpty()) { if (hex.isEmpty()) {
return hex; return hex;
} }
QString formatedString; QString formattedString;
while (!hex.isEmpty()) { while (!hex.isEmpty()) {
formatedString.append(hex.first(kmaxColumns)); formattedString.append(hex.first(kMaxColumns));
hex.remove(0, kmaxColumns); hex.remove(0, kMaxColumns);
if (formatedString.endsWith(':')) if (formattedString.endsWith(':'))
formatedString.removeLast(); formattedString.removeLast();
formatedString.append('\n'); formattedString.append('\n');
} }
formatedString.removeLast(); formattedString.removeLast();
return formatedString; return formattedString;
} }
/* /*