We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d084af1 + cf1999e commit 32e311fCopy full SHA for 32e311f
pkg/reconciler/buildrun/resources/sources.go
@@ -29,16 +29,14 @@ func isLocalCopyBuildSource(
29
buildRun *buildv1beta1.BuildRun,
30
) *buildv1beta1.Local {
31
32
- // Note: In v1alpha1 we will append all sources across builds and buildruns, and then return
33
- // the first source of type Local.
34
- if build.Spec.Source.Type == buildv1beta1.LocalType {
35
- return build.Spec.Source.LocalSource
36
- }
37
-
38
if buildRun.Spec.Source != nil && buildRun.Spec.Source.Type == buildv1beta1.LocalType {
39
return buildRun.Spec.Source.LocalSource
40
}
41
+ if build.Spec.Source.Type == buildv1beta1.LocalType {
+ return build.Spec.Source.LocalSource
+ }
+
42
return nil
43
44
0 commit comments