Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1c4ed72

Browse files
committed
minor clean up
1 parent496c15a commit1c4ed72

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

‎client/src/main/java/org/asynchttpclient/request/body/multipart/FileLikePart.java‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,7 @@ public abstract class FileLikePart extends PartBase {
4141
privateStringfileName;
4242

4343
privatestaticStringcomputeContentType(StringcontentType,StringfileName) {
44-
if (contentType ==null) {
45-
// TODO use a ThreadLocal to get work around synchronized?
46-
contentType =MIME_TYPES_FILE_TYPE_MAP.getContentType(withDefault(fileName,""));
47-
}
48-
49-
returncontentType;
44+
returncontentType !=null ?contentType :MIME_TYPES_FILE_TYPE_MAP.getContentType(withDefault(fileName,""));
5045
}
5146

5247
/**

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp