File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
src/GitVersion.Core/Configuration Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -142,15 +142,8 @@ public static string GetBranchSpecificTag(this EffectiveConfiguration configurat
142
142
return tagToUse ;
143
143
}
144
144
145
- public static List < KeyValuePair < string , BranchConfig > > GetReleaseBranchConfig ( this Config configuration )
146
- {
147
- foreach ( var ( key , value ) in configuration . Branches )
148
- {
149
- if ( value ? . IsReleaseBranch != null && value . IsReleaseBranch . Value )
150
- {
151
- return new List < KeyValuePair < string , BranchConfig > > { new ( key , value ) } ;
152
- }
153
- }
154
- return new List < KeyValuePair < string , BranchConfig > > ( ) ;
155
- }
145
+ public static List < KeyValuePair < string , BranchConfig > > GetReleaseBranchConfig ( this Config configuration ) =>
146
+ configuration . Branches
147
+ . Where ( b => b . Value . IsReleaseBranch == true )
148
+ . ToList ( ) ;
156
149
}
You can’t perform that action at this time.
0 commit comments