(no commit message)
[utils] / support / general / src / main / java / org / wamblee / xml / XslTransformer.java
index 78be8a567d9ae40296c98febcb6d537408d2faf5..b3ab9eda04e516ca0afc4532dbe99826140db9ae 100644 (file)
@@ -12,7 +12,7 @@
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 package org.wamblee.xml;
 
 import org.w3c.dom.Document;
@@ -85,9 +85,8 @@ public class XslTransformer {
                 } catch (IOException e) {
                     throw new TransformerException(e.getMessage(), e);
                 }
-            } else {
-                throw new TransformerException("Cannot read '" + aXslt + "'");
             }
+            throw new TransformerException("Cannot read '" + aXslt + "'");
         }
 
         return resolver.resolve(aXslt, "");