Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
da2ce7 committed Jul 16, 2024
1 parent d5b75d2 commit 040e022
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/metainfo/src/metainfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ mod tests {
.map(|&p| info_dict_access.insert(parse::PRIVATE_KEY.into(), ben_int!(p)));

directory
.map(|d| {
.inspect(|&d| {
// We intended to build a multi file torrent since we provided a directory
info_dict_access.insert(parse::NAME_KEY.into(), ben_bytes!(d));

Expand Down Expand Up @@ -539,8 +539,6 @@ mod tests {

info_dict_access.insert(parse::FILES_KEY.into(), bencode_files);
};

d
})
.or_else(|| {
// We intended to build a single file torrent if a directory was not specified
Expand Down

0 comments on commit 040e022

Please sign in to comment.