mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 03:11:32 +00:00
lint
This commit is contained in:
parent
503f6296fa
commit
0f6cb19140
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ impl Settings {
|
||||||
|
|
||||||
pub fn get_database_url(&self) -> String {
|
pub fn get_database_url(&self) -> String {
|
||||||
if let Ok(url) = env::var("LEMMY_DATABASE_URL") {
|
if let Ok(url) = env::var("LEMMY_DATABASE_URL") {
|
||||||
return url;
|
url
|
||||||
} else {
|
} else {
|
||||||
self.database.connection.clone()
|
self.database.connection.clone()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue