Skip to content

Commit b40c559

Browse files
Fix indentation/formatting of ternary operator in ContributionViewHolder
1 parent 1f306c4 commit b40c559

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/main/java/fr/free/nrw/commons/contributions/ContributionViewHolder.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ public void init(int position, Contribution contribution) {
120120
*/
121121
@Nullable
122122
private String chooseImageSource(String thumbUrl, Uri localUri) {
123-
return !TextUtils.isEmpty(thumbUrl) ? thumbUrl : (localUri != null ? localUri.toString()
124-
: null);
123+
return !TextUtils.isEmpty(thumbUrl) ? thumbUrl :
124+
(localUri != null ? localUri.toString() :
125+
null);
125126
}
126127

127128
/**

0 commit comments

Comments
 (0)