Skip to content

Commit

Permalink
appeases the formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Ross committed Aug 24, 2023
1 parent 616e7e5 commit a80b089
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sdk/src/utils/pdf_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ impl C2paPdf for Pdf {
Reference(file_spec_ref),
];

let Ok(catalog_names)= self.document.catalog_mut()?.get_mut(NAMES_KEY) else {
let Ok(catalog_names) = self.document.catalog_mut()?.get_mut(NAMES_KEY) else {
// No `Names` key exists in the catalog. We can safely add the names key, and construct
// the remaining objects.
//
// Add /EmbeddedFiles dictionary as indirect object
let embedded_files_ref = self.document.add_object(dictionary! {
NAMES_KEY => manifest_name_file_pair
Expand All @@ -127,7 +126,7 @@ impl C2paPdf for Pdf {

// Set /Names key in `Catalog` to reference above indirect object names dictionary.
self.document.catalog_mut()?.set(NAMES_KEY, names_ref);
return Ok(())
return Ok(());
};

let names_dictionary = match catalog_names.as_reference() {
Expand All @@ -142,7 +141,7 @@ impl C2paPdf for Pdf {
EMBEDDED_FILES_KEY,
dictionary! { NAMES_KEY => manifest_name_file_pair },
);
return Ok(())
return Ok(());
};

// Determine if `/EmbeddedFiles` value is direct or indirect.
Expand Down

0 comments on commit a80b089

Please sign in to comment.