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)
{
auto kmaxColumns = 24;
auto kMaxColumns = 24;
QString hex = fingerprint.toHex(':').toUpper();
if (hex.isEmpty()) {
return hex;
}
QString formatedString;
QString formattedString;
while (!hex.isEmpty()) {
formatedString.append(hex.first(kmaxColumns));
hex.remove(0, kmaxColumns);
if (formatedString.endsWith(':'))
formatedString.removeLast();
formatedString.append('\n');
formattedString.append(hex.first(kMaxColumns));
hex.remove(0, kMaxColumns);
if (formattedString.endsWith(':'))
formattedString.removeLast();
formattedString.append('\n');
}
formatedString.removeLast();
return formatedString;
formattedString.removeLast();
return formattedString;
}
/*