Skip to content

Commit

Permalink
enshort construction
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Jan 29, 2025
1 parent ed1dbd4 commit 78957ff
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/app/browser/window/tab/item/action/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,7 @@ impl Load {
/// with formatted for this action [Variant](https://docs.gtk.org/glib/struct.Variant.html) value
pub fn activate(&self, request: Option<&str>, is_history: bool) {
self.simple_action.activate(Some(
&(
match request {
Some(value) => String::from(value),
None => String::new(),
},
is_history,
)
.to_variant(),
&(request.unwrap_or_default(), is_history).to_variant(),
));
}

Expand Down

0 comments on commit 78957ff

Please sign in to comment.