Skip to content

Commit

Permalink
Merge pull request #148 from erickt/bug
Browse files Browse the repository at this point in the history
Remove duplicate code when creating client
  • Loading branch information
heartsucker committed Jul 27, 2018
2 parents d6bb132 + 7905891 commit 392442d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/client.rs
Expand Up @@ -141,16 +141,7 @@ where
&config.max_root_size,
config.min_bytes_per_second,
None,
)
.or_else(|_| {
local.fetch_metadata(
&MetadataPath::from_role(&Role::Root),
&MetadataVersion::Number(1),
&config.max_root_size,
config.min_bytes_per_second,
None,
)
})?;
)?;

let tuf = Tuf::from_root(&root)?;

Expand Down

0 comments on commit 392442d

Please sign in to comment.