Merge pull request #8853 from jonchang/fix-nil-mtime

tab: fix nil modification time
This commit is contained in:
Jonathan Chang 2020-10-05 14:28:04 +11:00 committed by GitHub
commit 447302a791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
name: brew doctor
on:
push:
pull_request:
paths:
- .github/workflows/doctor.yml
- Library/Homebrew/cmd/doctor.rb

View File

@ -324,7 +324,7 @@ class Tab < OpenStruct
end
def source_modified_time
Time.at(super)
Time.at(super || 0)
end
def to_json(options = nil)