Skip to content

Commit

Permalink
🚨 Comment out dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiBardon committed Aug 12, 2024
1 parent 6a3e637 commit 8b35e06
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/helpers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::{

use lazy_static::lazy_static;
use serde_json::Value;
use tracing::{debug, error, trace};
use tracing::trace;

use crate::config::*;

Expand Down Expand Up @@ -89,19 +89,19 @@ fn _html_file(data_file: &PathBuf) -> Option<Option<PathBuf>> {
Some(serde_json::from_value(path.to_owned()).ok())
}

fn html_file(data_file: &PathBuf) -> Result<PathBuf, ()> {
match _html_file(data_file) {
Some(Some(path)) => Ok(path),
Some(None) => {
error!("Path not defined");
Err(())
},
None => {
error!("File not found");
Err(())
},
}
}
// fn html_file(data_file: &PathBuf) -> Result<PathBuf, ()> {
// match _html_file(data_file) {
// Some(Some(path)) => Ok(path),
// Some(None) => {
// error!("Path not defined");
// Err(())
// },
// None => {
// error!("File not found");
// Err(())
// },
// }
// }

pub fn data_file(html_file: &PathBuf) -> PathBuf {
let mut data_file_rel = html_file
Expand Down

0 comments on commit 8b35e06

Please sign in to comment.