@@ -9,7 +9,6 @@ use ontoenv::util::write_dataset_to_file;
99use ontoenv:: ToUriString ;
1010use oxigraph:: io:: { JsonLdProfileSet , RdfFormat } ;
1111use oxigraph:: model:: NamedNode ;
12- use serde_json;
1312use std:: collections:: { BTreeMap , BTreeSet } ;
1413use std:: env:: current_dir;
1514use std:: path:: PathBuf ;
@@ -617,7 +616,7 @@ fn main() -> Result<()> {
617616 // Recompute status details similar to env.status()
618617 let ontoenv_dir = current_dir ( ) ?. join ( ".ontoenv" ) ;
619618 let last_updated = if ontoenv_dir. exists ( ) {
620- Some ( std:: fs:: metadata ( & ontoenv_dir) ?. modified ( ) ?. into ( ) )
619+ Some ( std:: fs:: metadata ( & ontoenv_dir) ?. modified ( ) ?)
621620 as Option < std:: time:: SystemTime >
622621 } else {
623622 None
@@ -847,16 +846,14 @@ fn main() -> Result<()> {
847846 } ) )
848847 . collect ( ) ;
849848 println ! ( "{}" , serde_json:: to_string_pretty( & out) ?) ;
849+ } else if problems. is_empty ( ) {
850+ println ! ( "No issues found." ) ;
850851 } else {
851- if problems. is_empty ( ) {
852- println ! ( "No issues found." ) ;
853- } else {
854- println ! ( "Found {} issues:" , problems. len( ) ) ;
855- for problem in problems {
856- println ! ( "- {}" , problem. message) ;
857- for location in problem. locations {
858- println ! ( " - {location}" ) ;
859- }
852+ println ! ( "Found {} issues:" , problems. len( ) ) ;
853+ for problem in problems {
854+ println ! ( "- {}" , problem. message) ;
855+ for location in problem. locations {
856+ println ! ( " - {location}" ) ;
860857 }
861858 }
862859 }
0 commit comments