title: Remove this redundant jump in Sonarqube
body: <p>I have a method in which there is a for loop. The loop looks something similar as below.</p>
  
  <pre><code>DirectoryInfo d = new DirectoryInfo(somePath);
  FileInfo[] Files = d.GetFiles();
  foreach (FileInfo file in Files)
  {
     try
     {
        DoSomething(file.Name);
     }
     catch (Exception ex)
     {
        continue;
     }
  }
  </code></pre>
  
  <p>What I'm doing is , getting all files from a directory, run the loop all the files, get the file Name and do something. Now what I want is even if <code>DoSomething</code> method raises an exception, I want the loop to continue and do not break in between. So for that I have written <code>continue</code> in catch block.  </p>
  
  <p>I'm running Sonarqube to check the code quality. It is showing the message "<code>Remove this redundant jump.</code>" . I want to know how can I remove this Code smell and still achieve what I want.</p>