From 00d2b3f9b0f91b94b9f13c92477527caa3cf8511 Mon Sep 17 00:00:00 2001 From: mattesony <49170923+mattesony@users.noreply.github.com> Date: Tue, 1 Nov 2022 17:23:41 -0700 Subject: [PATCH] Formatting --- src/core/Entry.cpp | 3 +-- tests/TestEntry.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/Entry.cpp b/src/core/Entry.cpp index 4d997e4ab..81702fd7a 100644 --- a/src/core/Entry.cpp +++ b/src/core/Entry.cpp @@ -245,9 +245,8 @@ int Entry::getPasswordAge() const // Found last change in history return curr->timeInfo().lastModificationTime().secsTo(Clock::currentDateTime()); } - } - if (previous!=this) { + if (previous != this) { // If no change in history, password is from oldest history entry. // Not using creation time here because that changes when an entry is cloned return previous->timeInfo().lastModificationTime().secsTo(Clock::currentDateTime()); diff --git a/tests/TestEntry.cpp b/tests/TestEntry.cpp index ea44ee6a4..b0c88bcc9 100644 --- a/tests/TestEntry.cpp +++ b/tests/TestEntry.cpp @@ -78,7 +78,7 @@ void TestEntry::testGetPasswordAge() QCOMPARE(entry2->getPasswordAge(), 100); entry2->addHistoryItem(historyEntry2); - // History entry shows password is actually + // History entry shows password is actually // 500 seconds older than the creation time QCOMPARE(entry2->getPasswordAge(), 600);