Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed the README to demonstrate stuff #84

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ For example:
# ChangeLog Release Notes

See the [ChangeLog.txt file](src/main/javadoc/doc-files/changelog.txt).

j256 marked this conversation as resolved.
Show resolved Hide resolved
# Some Stuff for Liz

Hi there.


6 changes: 1 addition & 5 deletions src/main/java/com/j256/simplemagic/ContentInfoUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,7 @@ public ContentInfo findMatch(InputStream inputStream) throws IOException {
* Return the content type from the associated bytes or null if none of the magic entries matched.
*/
public ContentInfo findMatch(byte[] bytes) {
if (bytes.length == 0) {
return ContentInfo.EMPTY_INFO;
} else {
return magicEntries.findMatch(bytes);
}
return ContentInfo.EMPTY_INFO;
}

/**
Expand Down