File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -1158,18 +1158,15 @@ fn main_result() -> anyhow::Result<i32> {
1158
1158
scenarios,
1159
1159
& mut errors,
1160
1160
) ;
1161
- match diffs. len ( ) . cmp ( & 1 ) {
1162
- Ordering :: Equal => {
1163
- let short = out_dir. join ( "cgann-diff-latest" ) ;
1164
- std:: fs:: copy ( & diffs[ 0 ] , & short) . expect ( "copy to short path" ) ;
1165
- eprintln ! ( "Original diff at: {}" , diffs[ 0 ] . to_string_lossy( ) ) ;
1166
- eprintln ! ( "Short path: {}" , short. to_string_lossy( ) ) ;
1167
- }
1168
- _ => {
1169
- eprintln ! ( "Diffs:" ) ;
1170
- for diff in diffs {
1171
- eprintln ! ( "{}" , diff. to_string_lossy( ) ) ;
1172
- }
1161
+ if diffs. len ( ) == 1 {
1162
+ let short = out_dir. join ( "cgann-diff-latest" ) ;
1163
+ std:: fs:: copy ( & diffs[ 0 ] , & short) . expect ( "copy to short path" ) ;
1164
+ eprintln ! ( "Original diff at: {}" , diffs[ 0 ] . to_string_lossy( ) ) ;
1165
+ eprintln ! ( "Short path: {}" , short. to_string_lossy( ) ) ;
1166
+ } else {
1167
+ eprintln ! ( "Diffs:" ) ;
1168
+ for diff in diffs {
1169
+ eprintln ! ( "{}" , diff. to_string_lossy( ) ) ;
1173
1170
}
1174
1171
}
1175
1172
}
You can’t perform that action at this time.
0 commit comments