mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-06 01:27:24 +03:00
refactor: simplify payload assignment in Event struct
This commit is contained in:
parent
b23169fc92
commit
d12d647ba9
@ -134,9 +134,7 @@ impl Event {
|
||||
) -> Self {
|
||||
Event {
|
||||
name: format!("project://{}/virtual-branches", project_id),
|
||||
payload: serde_json::json!({
|
||||
"virtualBranches": virtual_branches,
|
||||
}),
|
||||
payload: serde_json::json!(virtual_branches),
|
||||
project_id: *project_id,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user