1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- // Ignore Spelling: thumbprint Keyfactor sql
15+ // Ignore Spelling: thumbprint Keyfactor sql crypto
1616
1717// 021225 rcp 2.6.0 Cleaned up and verified code
1818
@@ -35,7 +35,9 @@ public class Management : WinCertJobTypeBase, IManagementJobExtension
3535 private ILogger _logger ;
3636
3737 private PSHelper _psHelper ;
38+ #pragma warning disable CS8632 // The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
3839 private Collection < PSObject > ? _results = null ;
40+ #pragma warning restore CS8632 // The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
3941
4042 // Function wide config values
4143 private string _clientMachineName = string . Empty ;
@@ -172,8 +174,6 @@ public JobResult ProcessJob(ManagementJobConfiguration config)
172174 // Remove the certificate from the cert store
173175 complete = RemoveCertificate ( config . JobCertificate . Alias ) ;
174176 _logger . LogTrace ( $ "Completed removing the certificate from the store") ;
175-
176- break ;
177177 }
178178 else
179179 {
@@ -184,7 +184,6 @@ public JobResult ProcessJob(ManagementJobConfiguration config)
184184 FailureMessage = "Unable to unbind one or more certificates from the SQL Instances."
185185 } ;
186186 }
187-
188187 }
189188 catch ( Exception ex )
190189 {
@@ -195,10 +194,9 @@ public JobResult ProcessJob(ManagementJobConfiguration config)
195194 FailureMessage = ex . Message
196195 } ;
197196 }
198-
199- _logger . LogTrace ( $ "Completed unbinding and removing the certificate from the store") ;
200- return complete ;
201197 }
198+ _logger . LogTrace ( $ "Completed unbinding and removing the certificate from the store") ;
199+ return complete ;
202200 }
203201 }
204202
0 commit comments