Skip to content

Commit 7ad04f9

Browse files
committed
if(); -< if(){}
1 parent 80b44d5 commit 7ad04f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/com/qiniu/resumableio/ResumableIO.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ public int putFile(Context mContext, String key, Uri uri, PutExtra extra, final
151151
if (!uri.toString().startsWith("file")) uri = convertFileUri(mContext, uri);
152152

153153
File file = new File(uri.getEncodedPath());
154-
if (file.exists()) return putAndClose(key, InputStreamAt.fromFile(file), extra, ret);
154+
if (file.exists()) {
155+
return putAndClose(key, InputStreamAt.fromFile(file), extra, ret);
156+
}
155157
ret.onFailure(new Exception("file not exist: " + uri.toString()));
156158

157159
return -1;

0 commit comments

Comments
 (0)