Skip to content

Commit

Permalink
use default instead of redefining
Browse files Browse the repository at this point in the history
  • Loading branch information
zefanjajobse committed Jun 26, 2024
1 parent 48e38f8 commit e729cb8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,7 @@ async fn main() -> anyhow::Result<()> {
Err(e) => {
log::error!("error in config.txt: {}", e);
log::warn!("changing back to default..");
Static {
token: "".into(),
server_name: "".into(),
}
Static::default()
}
};
cfg.token = match env::var("token") {
Expand Down

0 comments on commit e729cb8

Please sign in to comment.