fix: format code

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
This commit is contained in:
Yes365 2025-03-17 11:10:42 +08:00 committed by GitHub
parent 850dcffd00
commit 5dcef15ef1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,10 +71,7 @@ export default ((opts?: Partial<FolderContentOptions>) => {
if (child.data?.dates) {
// compare all dates and assign to maybeDates if its more recent or its not set
if (!maybeDates) {
const childDates = child.data.dates
maybeDates = {
...childDates,
}
maybeDates = { ...child.data.dates }
} else {
if (child.data.dates.created > maybeDates.created) {
maybeDates.created = child.data.dates.created