Skip to content

Commit

Permalink
chore(Projects): Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Jul 26, 2021
1 parent 80241d4 commit 8e592ff
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rust/src/projects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,11 +456,9 @@ impl Project {
) -> Result<Vec<File>> {
// Attempt to find a source with matching name
let mut source = if let Some(sources) = &self.sources {
if let Some(source_dest) = sources.get(name_or_identifier) {
Some(source_dest.source.clone())
} else {
None
}
sources
.get(name_or_identifier)
.map(|source_dest| source_dest.source.clone())
} else {
None
};
Expand Down

0 comments on commit 8e592ff

Please sign in to comment.