Skip to content

Commit 066ff96

Browse files
isoossigurdm
andauthored
Update app/lib/package/backend.dart
Co-authored-by: Sigurd Meldgaard <[email protected]>
1 parent 8c7aca0 commit 066ff96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/lib/package/backend.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,8 +1165,9 @@ class PackageBackend {
11651165
// We need to decrease the remaining version count as the newly uploaded
11661166
// version is not yet in it.
11671167
final limitAfterUpload = remainingVersionCount - 1;
1168+
final s = limitAfterUpload == 1 ? '' : 's';
11681169
uploadMessages.add(
1169-
'The package "${package!.name!}" has $limitAfterUpload versions left '
1170+
'The package "${package!.name!}" has $limitAfterUpload version$s left '
11701171
'before reaching the limit of $maxVersionCount. '
11711172
'Please contact [email protected]');
11721173
}

0 commit comments

Comments
 (0)