mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-03-11 17:49:27 -05:00
GitHub files page error #114
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shreyas1599 on GitHub (Feb 1, 2021).
I noticed this a while back. Forgot to get to it. Opening an issue in case I forget again.
@shreyas1599 commented on GitHub (Feb 2, 2021):
This seems to be a problem of
HighlightView. This is the offending line. Whenpatchis null as is the case with the above screenshot, the error occurs.@shreyas1599 commented on GitHub (Feb 2, 2021):
I can catch it in
files_item.dartitself but I think it would be better for the package to handle null.@shreyas1599 commented on GitHub (Feb 2, 2021):
I'm thinking of replacing this line with
patch ?? "No text to be shown here"or should I just leave it as an empty string. I think the first option is better because github returns a null patch only if the file has binary data. What do you think @pd4d10 ?@pd4d10 commented on GitHub (Feb 2, 2021):
OK. I have no strong preference for this, as long as it is easy to understand for users.