Skip to content

Commit

Permalink
fix(install): fix absent logic in insert_control_file
Browse files Browse the repository at this point in the history
  • Loading branch information
vrmiguel committed Jan 4, 2024
1 parent ef35812 commit f4807f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/src/v1/repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ impl Registry {
extension_version_id: i32,
control_file: Option<&ControlFileMetadata>,
) -> Result {
let absent = control_file.is_none();
let absent = control_file.map(|control_file| control_file.absent).unwrap_or(true);
let content = control_file.and_then(|control_file| control_file.content.as_ref());

sqlx::query!(
Expand Down

0 comments on commit f4807f1

Please sign in to comment.