Skip to content

Conversation

@Jamesking56
Copy link
Contributor

@Jamesking56 Jamesking56 commented Jun 11, 2024

When itemInfo is nil, a crash can occur when trying to set the created index.

This code block is not necessary, since a little bit further down, we are setting created anyway and this is after itemInfo is verified not to be nil:

itemInfo['created'] = created or time

@MonkeyWhisper MonkeyWhisper merged commit af3ba0d into Project-Sloth:main Jun 12, 2024
@Jamesking56 Jamesking56 deleted the fix-crash-when-itemInfo-is-nil branch June 19, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants