File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -148,13 +148,15 @@ impl AsInfo {
148148 /// ```
149149 pub fn get_preferred_name ( & self ) -> String {
150150 if let Some ( peeringdb_data) = & self . peeringdb
151- && let Some ( name) = & peeringdb_data. name {
152- return name. clone ( ) ;
153- }
151+ && let Some ( name) = & peeringdb_data. name
152+ {
153+ return name. clone ( ) ;
154+ }
154155 if let Some ( as2org_info) = & self . as2org
155- && !as2org_info. org_name . is_empty ( ) {
156- return as2org_info. org_name . clone ( ) ;
157- }
156+ && !as2org_info. org_name . is_empty ( )
157+ {
158+ return as2org_info. org_name . clone ( ) ;
159+ }
158160 self . name . clone ( )
159161 }
160162}
Original file line number Diff line number Diff line change @@ -47,9 +47,10 @@ impl SiblingOrgsUtils {
4747
4848 pub fn are_sibling_orgs ( & self , org_1 : & str , org_2 : & str ) -> bool {
4949 if let Some ( s) = self . sibling_orgs_map . get ( org_1. to_lowercase ( ) . as_str ( ) )
50- && s. contains ( org_2. to_lowercase ( ) . as_str ( ) ) {
51- return true ;
52- }
50+ && s. contains ( org_2. to_lowercase ( ) . as_str ( ) )
51+ {
52+ return true ;
53+ }
5354
5455 false
5556 }
You can’t perform that action at this time.
0 commit comments