Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -43,9 +43,8 @@ public String probeContentType(Path path) throws IOException {
if (firstLine != null && SHEBANG_REGEXP.matcher(firstLine).matches()) {
return RUBY_MIME;
}
} catch (Exception e) {
} catch (IOException e) {
// Reading random files as UTF-8 could cause all sorts of errors
return null;
}

return null;

0 comments on commit a05f8c1

Please sign in to comment.