Skip to content

Commit

Permalink
Remove dead code after returns
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Dec 11, 2014
1 parent 5f7c8a1 commit c8b46ea
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Page/Transformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@ public static function toHtml($source, $type) {
switch($type) {
case self::TYPE_MARKDOWN:
return Markdown::defaultTransform($source);
break;

default:
throw new SourceNotValidException();
break;
}

throw new SourceNotValidException();
}

}#

0 comments on commit c8b46ea

Please sign in to comment.