Removing unnecessary nesting

This commit is contained in:
misaochan 2016-07-26 15:59:24 +12:00
parent a026a49017
commit cbb3fc0f93

View file

@ -139,10 +139,11 @@ public class UploadController {
if(mimeType == null || TextUtils.isEmpty(mimeType) || mimeType.endsWith("*")) {
mimeType = activity.getContentResolver().getType(contribution.getLocalUri());
if(mimeType != null) {
contribution.setTag("mimeType", mimeType);
imagePrefix = mimeType.startsWith("image/");
}
}
if(mimeType != null) {
contribution.setTag("mimeType", mimeType);
imagePrefix = mimeType.startsWith("image/");
}
if(imagePrefix && contribution.getDateCreated() == null) {