File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -332,6 +332,9 @@ func (s ServiceConfig) HasProfile(profiles []string) bool {
332
332
return true
333
333
}
334
334
for _ , p := range profiles {
335
+ if p == "*" {
336
+ return true
337
+ }
335
338
for _ , sp := range s .Profiles {
336
339
if sp == p {
337
340
return true
@@ -345,11 +348,6 @@ func (s ServiceConfig) HasProfile(profiles []string) bool {
345
348
// It returns a new Project instance with the changes and keep the original Project unchanged
346
349
func (p * Project ) WithProfiles (profiles []string ) (* Project , error ) {
347
350
newProject := p .deepCopy ()
348
- for _ , p := range profiles {
349
- if p == "*" {
350
- return newProject , nil
351
- }
352
- }
353
351
enabled := Services {}
354
352
disabled := Services {}
355
353
for name , service := range newProject .AllServices () {
You can’t perform that action at this time.
0 commit comments