Skip to content

Commit

Permalink
fix comment + format
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-baraschi-peperina committed May 18, 2024
1 parent 10f5083 commit e7f9d2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions backend/src/bounty/api/accept.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ use crate::bounty::api::state::{
IssueId, PullRequest, PullRequestId, PullRequestMetadata, Time, UserId,
};

use crate::register_user_impl;
use crate::users::api::register_user::RegisterUserError;

#[derive(Debug, Serialize, Deserialize, CandidType)]
pub enum AcceptError {
IssueNotFound { github_issue_id: IssueId },
Expand Down Expand Up @@ -58,9 +55,12 @@ pub fn accept_impl(
#[cfg(test)]
mod test_accept {
use super::*;
use crate::bounty::api::{
init::init_impl,
register_issue::{register_issue_impl, RegisterIssueError},
use crate::{
bounty::api::{
init::init_impl,
register_issue::{register_issue_impl, RegisterIssueError},
},
users::api::register_user::{register_user_impl, RegisterUserError},
};
use candid::{Nat, Principal};
use num_bigint::BigUint;
Expand Down
2 changes: 1 addition & 1 deletion backend/src/bounty/api/register_issue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn register_issue_impl(
now: Time,
) -> RegisterIssueReceipt {
return state::with_mut(|state| {
// TODO: Check contributor it's registered and github_issue_id exists on github
// TODO: Check github_issue_id exists on github
// First if check contributor it's registered
if !state.is_user_existed(&github_user_id) {
return Some(RegisterIssueError::UserNotFound { github_user_id });
Expand Down

0 comments on commit e7f9d2a

Please sign in to comment.