Skip to content

Commit

Permalink
Merge pull request #90 from VictoriqueMoe/remove-explicit-null
Browse files Browse the repository at this point in the history
Add default null to property, remove explicit null set
  • Loading branch information
nakedmcse authored Mar 4, 2024
2 parents f827b22 + 4bb567b commit a6cd18c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/model/rest/FileEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class FileEntry {

@Property()
@Nullable(String)
public expires: string | null;
public expires: string | null = null;

@Property()
public url: string;
Expand Down Expand Up @@ -60,8 +60,6 @@ export class FileEntry {
const expiresIn = entry.expiresIn;
if (expiresIn !== null) {
fileEntryBuilder.expires(ObjectUtils.timeToHuman(expiresIn));
} else {
fileEntryBuilder.expires(null);
}
return fileEntryBuilder.build();
}
Expand Down

0 comments on commit a6cd18c

Please sign in to comment.