Skip to content

Commit ffe3c63

Browse files
author
Brendan O'Connell
committed
Review comments
1 parent 065af02 commit ffe3c63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

thoth-export-server/src/csv/kbart_oclc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct KbartOclcRow {
2525
num_last_issue_online: Option<i64>,
2626
title_url: String,
2727
first_author: Option<String>,
28-
title_id: Option<String>,
28+
title_id: String,
2929
embargo_info: Option<String>,
3030
coverage_depth: String,
3131
notes: Option<String>,
@@ -156,7 +156,7 @@ impl TryFrom<Work> for KbartOclcRow {
156156
title_id: work
157157
.doi
158158
.map(|d| d.to_string())
159-
.or_else(|| Some(work.work_id.to_string())),
159+
.unwrap_or_else(|| work.work_id.to_string()),
160160
embargo_info: None,
161161
coverage_depth: "fulltext".to_string(),
162162
notes: None,

0 commit comments

Comments
 (0)