From 4b849cfed64984355a8141bb245db3d7c5ac378a Mon Sep 17 00:00:00 2001 From: ModulatingForce <116608425+modulatingforce@users.noreply.github.com> Date: Tue, 9 Apr 2024 12:51:53 -0400 Subject: [PATCH] comments cleanup --- src/core/identity.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/core/identity.rs b/src/core/identity.rs index 42bc4c7..effb317 100644 --- a/src/core/identity.rs +++ b/src/core/identity.rs @@ -15,21 +15,9 @@ use dotenv::dotenv; use std::env; fn adminvector() -> Vec { - // vec![String::from("ModulatingForce")] - // //vec![] dotenv().ok(); let mut admins = Vec::new(); - // for admin in env::var("bot_admins").unwrap().split(',') { - // admins.push(String::from(admin)) - // } - - // 03.17 - Forcen - Suggesting below instead : - /* - - this will push only if env::var() returns Ok() ; - otherwise (like in Err(_)) do nothing - */ - if let Ok(value) = env::var("bot_admins") { for admin in value.split(',') { admins.push(String::from(admin))