mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
LibDiff: Make Diff::parse_hunks fallible
Currently the only error that can happen is an OOM. However, in the future there may be other errors that this function may throw, such as detecting an invalid patch.
This commit is contained in:
parent
dbd838efdf
commit
23df5748f6
Notes:
sideshowbarker
2024-07-17 17:49:11 +09:00
Author: https://github.com/shannonbooth
Commit: 23df5748f6
Pull-request: https://github.com/SerenityOS/serenity/pull/19592
Reviewed-by: https://github.com/kennethmyhra ✅
4 changed files with 10 additions and 9 deletions
|
@ -32,6 +32,6 @@ struct Hunk {
|
|||
Vector<DeprecatedString> added_lines;
|
||||
};
|
||||
|
||||
Vector<Hunk> parse_hunks(DeprecatedString const& diff);
|
||||
ErrorOr<Vector<Hunk>> parse_hunks(DeprecatedString const& diff);
|
||||
HunkLocation parse_hunk_location(StringView location_line);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue