Skip to content

Commit

Permalink
chore: correct lints
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard authored and thevaibhav-dixit committed Jan 6, 2025
1 parent 02d7afc commit 173d536
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions core/chart-of-accounts/src/chart_of_accounts/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ impl ChartOfAccount {
reference: String,
audit_info: AuditInfo,
) -> Result<ChartOfAccountCode, ChartOfAccountError> {
if let Some(_) = self.find_control_account_by_reference(reference.to_string()) {
if self
.find_control_account_by_reference(reference.to_string())
.is_some()
{
return Err(ChartOfAccountError::ControlAccountAlreadyRegistered(
reference,
));
Expand Down Expand Up @@ -145,7 +148,10 @@ impl ChartOfAccount {
reference: String,
audit_info: AuditInfo,
) -> Result<ChartOfAccountCode, ChartOfAccountError> {
if let Some(_) = self.find_control_sub_account_by_reference(reference.to_string()) {
if self
.find_control_sub_account_by_reference(reference.to_string())
.is_some()
{
return Err(ChartOfAccountError::ControlSubAccountAlreadyRegistered(
reference,
));
Expand Down
2 changes: 1 addition & 1 deletion lana/app/src/accounting_init/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ impl AccountingInit {
cala: &CalaLedger,
chart_of_accounts: &ChartOfAccounts,
) -> Result<Self, AccountingInitError> {
Ok(seed::execute(cala, chart_of_accounts).await?)
seed::execute(cala, chart_of_accounts).await
}
}

0 comments on commit 173d536

Please sign in to comment.