Simplify boolean expressions

This commit is contained in:
addshore 2017-05-13 13:01:45 +02:00
parent f019aa2865
commit 5fe95813df
3 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@ public class ContributionController {
String path = Environment.getExternalStorageDirectory().getAbsolutePath() + "/Commons/images/" + new Date().getTime() + ".jpg";
File _photoFile = new File(path);
try {
if(_photoFile.exists() == false) {
if(!_photoFile.exists()) {
_photoFile.getParentFile().mkdirs();
_photoFile.createNewFile();
}