Skip to content

Commit

Permalink
chore: remove reading env and hard coded the app name
Browse files Browse the repository at this point in the history
  • Loading branch information
n3tw0rth committed Jan 17, 2025
1 parent 1fa4218 commit 9c5c119
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ use tokio::io::{AsyncReadExt, AsyncWriteExt};
use super::Config;

pub async fn app_state() -> anyhow::Result<Config> {
let config_path = dirs::config_dir()
.unwrap()
.join(std::env::var("CARGO_PKG_NAME").unwrap());
let config_path = dirs::config_dir().unwrap().join("fetched");
let filename = "config.toml";

let path = config_path.join(filename);
Expand Down

0 comments on commit 9c5c119

Please sign in to comment.