@@ -43,7 +43,7 @@ final class UnifiedCheckRun {
4343 );
4444 // We store the creation time of the guard since there might be several
4545 // guards for the same PR created and each new one created after previous
46- // was succeeded so we are interested in a state of the last one.
46+ // was succeeded so we are interested in a state of the latest one.
4747 final creationTime = DateTime .now ().toUtc ().microsecondsSinceEpoch;
4848 final guard = PresubmitGuard (
4949 checkRun: checkRun,
@@ -94,8 +94,8 @@ final class UnifiedCheckRun {
9494 final transaction = await firestoreService.beginTransaction ();
9595
9696 // New guard created only if previous is succeeded so failed checks might be
97- // only in last guard.
98- final guard = await getLastPresubmitGuardForCheckRun (
97+ // only in latest guard.
98+ final guard = await getLatestPresubmitGuardForCheckRun (
9999 firestoreService: firestoreService,
100100 slug: slug,
101101 pullRequestId: pullRequestId,
@@ -192,7 +192,7 @@ final class UnifiedCheckRun {
192192 )).firstOrNull;
193193 }
194194
195- /// Returns the latest check for the specified github [checkRunId] and
195+ /// Returns the latest [PresubmitCheck] for the specified github [checkRunId] and
196196 /// [buildName] .
197197 static Future <PresubmitCheck ?> getLatestPresubmitCheck ({
198198 required FirestoreService firestoreService,
@@ -210,8 +210,8 @@ final class UnifiedCheckRun {
210210 )).firstOrNull;
211211 }
212212
213- /// Returns [PresubmitGuard] s for the specified github [checkRunId] .
214- static Future <PresubmitGuard ?> getLastPresubmitGuardForCheckRun ({
213+ /// Returns the latest [PresubmitGuard] for the specified github [checkRunId] .
214+ static Future <PresubmitGuard ?> getLatestPresubmitGuardForCheckRun ({
215215 required FirestoreService firestoreService,
216216 required RepositorySlug slug,
217217 required int pullRequestId,
0 commit comments