File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/ado2gh/Commands/GenerateScript Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -109,12 +109,10 @@ private async Task CheckForDuplicateRepoNames()
109109 {
110110 foreach ( var teamProject in await _adoInspectorService . GetTeamProjects ( org ) )
111111 {
112- foreach ( var repo in await _adoInspectorService . GetRepos ( org , teamProject ) )
112+ foreach ( var repo in ( await _adoInspectorService . GetRepos ( org , teamProject ) )
113+ . Where ( repo => ! seen . Add ( GetGithubRepoName ( teamProject , repo . Name ) ) ) )
113114 {
114- if ( ! seen . Add ( GetGithubRepoName ( teamProject , repo . Name ) ) )
115- {
116- _log . LogWarning ( $ "DUPLICATE REPO NAME: { GetGithubRepoName ( teamProject , repo . Name ) } ") ;
117- }
115+ _log . LogWarning ( $ "DUPLICATE REPO NAME: { GetGithubRepoName ( teamProject , repo . Name ) } ") ;
118116 }
119117 }
120118 }
You can’t perform that action at this time.
0 commit comments