Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Fix more formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Linker <nlinker@gmail.com>
  • Loading branch information
nlinker committed Sep 14, 2020
1 parent c321864 commit a1ff2cb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions iml-manager-env/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,7 @@ pub fn get_db_host() -> Option<String> {
}

pub fn get_db_port() -> Option<u16> {
env::var("DB_PORT")
.ok()
.map(|l| l.parse().ok())
.flatten()
env::var("DB_PORT").ok().map(|l| l.parse().ok()).flatten()
}

pub fn get_db_name() -> Option<String> {
Expand Down

0 comments on commit a1ff2cb

Please sign in to comment.