Skip to content

Commit bc64616

Browse files
committed
Be more explicit about the end of the year in the text comment
1 parent 6c6bb19 commit bc64616

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/controller/cve-id.controller/cve-id.controller.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ async function priorityReservation (year, amount, shortName, orgShortName, reque
455455

456456
// Cve Id Range for 'year' does not exists
457457
if (!result) {
458-
// If there are less than or equal to 90 days until the end of the year, auto reserve it and move on.
458+
// if reservations are not allowed for the current year, or if there are less than or equal to 90 days until the end of the year, auto reserve it and move on.
459459
// We also do not want the auto reservation feature to allow to reserve years in the past.
460460
// Otherwise throw failure
461461
if (!isYearInPast(year) && daysUntilYear(year) <= 90) {
@@ -545,7 +545,7 @@ async function sequentialReservation (year, amount, shortName, orgShortName, req
545545

546546
// Cve Id Range for 'year' does not exists
547547
if (!result) {
548-
// If there are less than or equal to 90 days until the end of the year, auto reserve it and move on.
548+
// if reservations are not allowed for the current year, or if there are less than or equal to 90 days until the end of the year, auto reserve it and move on.
549549
// We also do not want the auto reserve to work on any year in the past.
550550
// Otherwise throw failure
551551
if (!isYearInPast(year) && daysUntilYear(year) <= 90) {
@@ -655,7 +655,7 @@ async function nonSequentialReservation (year, amount, shortName, orgShortName,
655655

656656
// Cve Id Range for 'year' does not exists
657657
if (!result) {
658-
// If there are less than or equal to 90 days until the end of the year, auto reserve it and move on.
658+
// if reservations are not allowed for the current year, or if there are less than or equal to 90 days until the end of the year, auto reserve it and move on.
659659
// We also do not want to auto reserve any years in the past.
660660
// Otherwise throw failure
661661
if (!isYearInPast(year) && daysUntilYear(year) <= 90) {

0 commit comments

Comments
 (0)