Skip to content

Commit

Permalink
chore(notifications): use consistent formatting and style
Browse files Browse the repository at this point in the history
  • Loading branch information
thevaibhav-dixit committed Feb 6, 2024
1 parent 0ba64f1 commit f85ca98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions core/notifications/src/executor/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub struct NovuWorkflows {
pub struct FcmConfig {
pub service_account_key: Option<ServiceAccountKey>,
}

impl NovuWorkflows {
pub fn for_name(&self, name: &str) -> String {
match name {
Expand Down
3 changes: 1 addition & 2 deletions core/notifications/src/executor/error.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use thiserror::Error;

use super::fcm::error::FcmError;
use super::novu::error::NovuError;
use super::{fcm::error::FcmError, novu::error::NovuError};
use crate::user_notification_settings::error::*;

#[derive(Error, Debug)]
Expand Down
5 changes: 2 additions & 3 deletions core/notifications/src/executor/fcm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ impl FcmClient {
.build(),
);
let client = FirebaseCloudMessaging::new(hyper_client, auth);
Ok(Self { client })
} else {
Err(FcmError::NoServiceAccountKey)
return Ok(Self { client });
}
Err(FcmError::NoServiceAccountKey)
}
}

0 comments on commit f85ca98

Please sign in to comment.