Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit 3a75012

Browse files
committed
[DEV] Remove unecessary if
1 parent 55c0015 commit 3a75012

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

myscript-text-web.html

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -103,22 +103,12 @@
103103
textParameter.language = myscriptTextWebElement.language;
104104
textParameter.textInputMode = myscriptTextWebElement.textinputmode;
105105
textParameter.resultDetail = myscriptTextWebElement.resultdetail;
106-
if (myscriptTextWebElement.contenttypes) {
107-
textParameter.contentTypes = myscriptTextWebElement.contenttypes;
108-
}
109-
if (myscriptTextWebElement.subsetknowledges) {
110-
textParameter.subsetKnowledges = myscriptTextWebElement.subsetknowledges;
111-
}
112-
if (myscriptTextWebElement.userlkwords) {
113-
textParameter.userLkWords = myscriptTextWebElement.userlkwords;
114-
}
115-
if (myscriptTextWebElement.userresources) {
116-
textParameter.userResources = myscriptTextWebElement.userresources;
117-
}
106+
textParameter.contentTypes = myscriptTextWebElement.contenttypes;
107+
textParameter.subsetKnowledges = myscriptTextWebElement.subsetknowledges;
108+
textParameter.userLkWords = myscriptTextWebElement.userlkwords;
109+
textParameter.userResources = myscriptTextWebElement.userresources;
118110
// TODO Add textProperties object if needed
119-
if (myscriptTextWebElement.textproperties) {
120-
textParameter.textProperties = myscriptTextWebElement.textproperties;
121-
}
111+
textParameter.textProperties = myscriptTextWebElement.textproperties;
122112
return textParameter;
123113
}
124114

0 commit comments

Comments
 (0)