This repository was archived by the owner on Feb 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -60,18 +60,18 @@ public async Task<Template> GenerateTagsTemplateAsync(string apimname, string re
60
60
// or if it is found in tags associated with the api
61
61
// or if it is found in tags associated with the products associated with the api
62
62
if ( singleApiName == null
63
- || apiOperationTagResources . FirstOrDefault ( t => t . name . Contains ( $ "/{ TagName } ") ) != null
64
- || apiTagResources . FirstOrDefault ( t => t . name . Contains ( $ "/{ TagName } ") ) != null
65
- || ( productAPIResources . FirstOrDefault ( t => t . name . Contains ( $ "/{ singleApiName } ") ) != null
66
- && productTagResources . FirstOrDefault ( t => t . name . Contains ( $ "/{ TagName } ") ) != null ) )
67
- {
63
+ || apiOperationTagResources . Any ( t => t . name . Contains ( $ "/{ TagName } ' ") )
64
+ || apiTagResources . Any ( t => t . name . Contains ( $ "/{ TagName } ' ") )
65
+ || ( productAPIResources . Any ( t => t . name . Contains ( $ "/{ singleApiName } ") )
66
+ && productTagResources . Any ( t => t . name . Contains ( $ "/{ TagName } ' ") ) ) )
67
+ {
68
68
Console . WriteLine ( "'{0}' Tag found" , TagName ) ;
69
69
templateResources . Add ( TagTemplateResource ) ;
70
- }
70
+ }
71
71
}
72
72
73
73
armTemplate . resources = templateResources . ToArray ( ) ;
74
74
return armTemplate ;
75
75
}
76
76
}
77
- }
77
+ }
You can’t perform that action at this time.
0 commit comments