From 0f6cb191405f07f949c6a9a443e5d233d4d36c9c Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 10 Dec 2024 10:13:00 +0100 Subject: [PATCH] lint --- crates/utils/src/settings/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/utils/src/settings/mod.rs b/crates/utils/src/settings/mod.rs index fcd2774c6..72d986d2d 100644 --- a/crates/utils/src/settings/mod.rs +++ b/crates/utils/src/settings/mod.rs @@ -49,7 +49,7 @@ impl Settings { pub fn get_database_url(&self) -> String { if let Ok(url) = env::var("LEMMY_DATABASE_URL") { - return url; + url } else { self.database.connection.clone() }