Skip to content

Commit

Permalink
chore: fix newline in skipped opcheck output (#1519)
Browse files Browse the repository at this point in the history
  • Loading branch information
EverlastingBugstopper authored Feb 17, 2023
1 parent c6694d7 commit e647bb1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/rover-client/src/shared/check_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,17 @@ pub struct SkipOperationsCheckResponse {
impl SkipOperationsCheckResponse {
pub fn to_output(&self) -> String {
let mut msg = if self.core_schema_modified {
"Core schema was updated".to_string()
"There were no changes detected in the composed API schema, but the core schema was modified.".to_string()
} else {
"Core schema wasn't updated".to_string()
"There were no changes detected in the composed schema.".to_string()
};

if let Some(url) = &self.target_url {
msg.push_str("\n\n");
msg.push_str("View full details at: ");
msg.push_str(url);
};

msg
}

Expand Down

0 comments on commit e647bb1

Please sign in to comment.