Skip to content

Commit

Permalink
unused
Browse files Browse the repository at this point in the history
  • Loading branch information
CassOnMars committed Feb 3, 2025
1 parent 07e0a02 commit dde923b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/network/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1381,10 +1381,12 @@ impl HubService for MyHubService {
) -> Result<Response<MessagesResponse>, Status> {
let req = request.into_inner();

let link_type = req
.link_type
.clone()
.ok_or_else(|| Status::invalid_argument("link_type is required".to_string()))?;
if req.link_type.clone().is_none() {
return Err(Status::invalid_argument(
"link_type is required".to_string(),
));
}

let target = match req.target {
Some(links_by_target_request::Target::TargetFid(fid)) => {
link_body::Target::TargetFid(fid)
Expand Down

0 comments on commit dde923b

Please sign in to comment.