Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Commit

Permalink
#12 handle undefined entityObject
Browse files Browse the repository at this point in the history
  • Loading branch information
faizanvahevaria committed Mar 5, 2020
1 parent fed5acc commit b500409
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/transport/enum.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ function bindEnumToImport(enumeObject, mSubObject) {
enumeObject[fields.isAbstract] = mSubObject.isAbstract;
/* #12 Type check for the properties */
if(utils.isString(mSubObject.description)){
entityObject.documentation = mSubObject.description;
enumeObject.documentation = mSubObject.description;
}
else{
entityObject.documentation = "";
enumeObject.documentation = "";
}

}
Expand Down
4 changes: 2 additions & 2 deletions src/transport/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ function bindEventToImport(interfaceObject, mSubObject) {
interfaceObject.name = mSubObject.name;
/* #12 Type check for the properties */
if(utils.isString(mSubObject.description)){
entityObject.documentation = mSubObject.description;
interfaceObject.documentation = mSubObject.description;
}
else{
entityObject.documentation = "";
interfaceObject.documentation = "";
}

}
Expand Down

0 comments on commit b500409

Please sign in to comment.