Skip to content

Commit adaffdd

Browse files
Surayya Huseyn ZadaSurayya Huseyn Zada
authored andcommitted
small fix
1 parent 674ee0e commit adaffdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Containers/Microsoft.NET.Build.Containers/ImageIndexGenerator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ internal static (string, string) GenerateImageIndex(BuiltImage[] images)
2121
{
2222
if (images.Length == 0)
2323
{
24-
throw new ArgumentException(string.Format(Strings.ImagesEmpty));
24+
throw new ArgumentException(Strings.ImagesEmpty);
2525
}
2626

2727
string manifestMediaType = images[0].ManifestMediaType;
@@ -49,9 +49,9 @@ internal static string GenerateImageIndex(BuiltImage[] images, string manifestMe
4949
{
5050
if (images.Length == 0)
5151
{
52-
throw new ArgumentException(string.Format(Strings.ImagesEmpty));
52+
throw new ArgumentException(Strings.ImagesEmpty);
5353
}
54-
54+
5555
// Here we are using ManifestListV2 struct, but we could use ImageIndexV1 struct as well.
5656
// We are filling the same fields, so we can use the same struct.
5757
var manifests = new PlatformSpecificManifest[images.Length];

0 commit comments

Comments
 (0)