Skip to content

Commit

Permalink
fix(lint): better undefined typing
Browse files Browse the repository at this point in the history
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
  • Loading branch information
skjnldsv and Pytal committed Apr 11, 2023
1 parent fffd8d8 commit d8ba76a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/files/node.ts
Expand Up @@ -108,14 +108,14 @@ export abstract class Node {
/**
* Get the file modification time
*/
get mtime(): Date|undefined {
get mtime(): ?Date {
return this._data.mtime
}

/**
* Get the file creation time
*/
get crtime(): Date|undefined {
get crtime(): ?Date {
return this._data.crtime
}

Expand Down

0 comments on commit d8ba76a

Please sign in to comment.