Skip to content

Commit 96596c2

Browse files
committed
refactor(library/URI): prefers parameter properties in ImageURI
1 parent e6e46d6 commit 96596c2

File tree

1 file changed

+1
-4
lines changed
  • src/library/customTypes/UniformResourceIdentifier/Data/Image

1 file changed

+1
-4
lines changed

src/library/customTypes/UniformResourceIdentifier/Data/Image/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ class ImageURI
1515
extends DataURI {
1616
public static readonly fileType = 'image';
1717

18-
public readonly format: ImageURI_Format.Any;
19-
2018
public constructor(
21-
givenFormat: ImageURI_Format.Any,
19+
public readonly format: ImageURI_Format.Any,
2220
givenEncoding: DataURI_EncodingIdentifier.Any,
2321
givenData: Base64CharacterEncodedByteSequence,
2422
) {
@@ -27,7 +25,6 @@ class ImageURI
2725
givenEncoding,
2826
givenData,
2927
);
30-
this.format = givenFormat;
3128
}
3229

3330
public override get mediaType(): DataURI['mediaType'] {

0 commit comments

Comments
 (0)