mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibCore: Remove ErrorOr return type from read_long_version_string
Nothing in this function is fallible.
This commit is contained in:
@@ -384,7 +384,7 @@ void ArgsParser::print_version(FILE* file)
|
|||||||
{
|
{
|
||||||
// FIXME: Allow applications to override version string for --version.
|
// FIXME: Allow applications to override version string for --version.
|
||||||
// Especially useful for Lagom applications
|
// Especially useful for Lagom applications
|
||||||
outln(file, Core::Version::read_long_version_string().release_value_but_fixme_should_propagate_errors());
|
outln(file, Core::Version::read_long_version_string());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ArgsParser::add_option(Option&& option)
|
void ArgsParser::add_option(Option&& option)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
namespace Core::Version {
|
namespace Core::Version {
|
||||||
|
|
||||||
ErrorOr<String> read_long_version_string()
|
String read_long_version_string()
|
||||||
{
|
{
|
||||||
auto validate_git_hash = [](auto hash) {
|
auto validate_git_hash = [](auto hash) {
|
||||||
if (hash.length() < 4 || hash.length() > 40)
|
if (hash.length() < 4 || hash.length() > 40)
|
||||||
|
|||||||
@@ -11,6 +11,6 @@
|
|||||||
|
|
||||||
namespace Core::Version {
|
namespace Core::Version {
|
||||||
|
|
||||||
ErrorOr<String> read_long_version_string();
|
String read_long_version_string();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user