Skip to content

Commit 2b56397

Browse files
committed
avoid local var per review
1 parent 8a43889 commit 2b56397

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/edu/harvard/iq/dataverse/MetadataBlock.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ public boolean isDisplayOnCreate() {
108108
// Non-localized case - the datasetFieldTypes are straight from the database and
109109
// never have dsfType.localDsiplayOnCreate set.
110110
for (DatasetFieldType dsfType : datasetFieldTypes) {
111-
boolean shouldDisplayOnCreate = dsfType.isDisplayOnCreate();
112-
if (shouldDisplayOnCreate) {
111+
if (dsfType.isDisplayOnCreate()) {
113112
return true;
114113
}
115114
}

0 commit comments

Comments
 (0)