File tree Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -131,25 +131,20 @@ func (c *chain) Apply(configtx *common.ConfigEnvelope) error {
131
131
return err
132
132
}
133
133
134
- // If the chainSupport is being mocked, this field will be nil
135
- if c .bundleSource != nil {
136
- bundle , err := channelconfig .NewBundle (c .cs .ConfigtxValidator ().ChainID (), configtx .Config )
137
- if err != nil {
138
- return err
139
- }
140
-
141
- channelconfig .LogSanityChecks (bundle )
142
-
143
- err = c .bundleSource .ValidateNew (bundle )
144
- if err != nil {
145
- return err
146
- }
147
-
148
- capabilitiesSupportedOrPanic (bundle )
134
+ bundle , err := channelconfig .NewBundle (c .cs .ConfigtxValidator ().ChainID (), configtx .Config )
135
+ if err != nil {
136
+ return err
137
+ }
149
138
150
- c .bundleSource .Update (bundle )
139
+ channelconfig .LogSanityChecks (bundle )
140
+ err = c .bundleSource .ValidateNew (bundle )
141
+ if err != nil {
142
+ return err
151
143
}
152
144
145
+ capabilitiesSupportedOrPanic (bundle )
146
+
147
+ c .bundleSource .Update (bundle )
153
148
return nil
154
149
}
155
150
You can’t perform that action at this time.
0 commit comments