mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 12:19:37 +03:00
LibWeb: Declare variable with the auto keyword
Use the auto keyword instead of the full type name like we do elsewhere in the codebase.
This commit is contained in:
parent
c8c5f05de5
commit
1e5d107649
Notes:
sideshowbarker
2024-07-17 18:46:30 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/SerenityOS/serenity/commit/1e5d107649 Pull-request: https://github.com/SerenityOS/serenity/pull/14753 Reviewed-by: https://github.com/linusg
@ -129,7 +129,7 @@ DOM::ExceptionOr<NonnullRefPtr<Blob>> Blob::create(Optional<Vector<BlobPart>> co
|
||||
byte_buffer = TRY_OR_RETURN_OOM(process_blob_parts(blob_parts.value(), options));
|
||||
}
|
||||
|
||||
String type = String::empty();
|
||||
auto type = String::empty();
|
||||
// 3. If the type member of the options argument is not the empty string, run the following sub-steps:
|
||||
if (options.has_value() && !options->type.is_empty()) {
|
||||
// 1. If the type member is provided and is not the empty string, let t be set to the type dictionary member.
|
||||
|
Loading…
Reference in New Issue
Block a user