Skip to content

Commit

Permalink
style(class/encoder/index.js) code indented
Browse files Browse the repository at this point in the history
  • Loading branch information
rimiti committed Jul 24, 2017
1 parent a5ce655 commit ebd7f79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/class/encoder/index.js
Expand Up @@ -43,13 +43,15 @@ export default class Encoder {
return component.position === component_index
})[0]
let fields = segmentConfig.values.filter((f) => {
return (f.component && f.component[0] === component_index) || (f.children && f.children.filter((child) => { return child.component[0] === component_index }).length > 0)
return (f.component && f.component[0] === component_index) || (f.children && f.children.filter((child) => {
return child.component[0] === component_index
}).length > 0)
})
let fields_content = []
let field_repetitive_content = []
if (fields.length > 0) {
for (let i = 0; i < fields.length; i++) {
if(!fields[i].children) {
if (!fields[i].children) {
fields_content[fields[i].component[1] - 1] = this._getFieldContent(this.message_to_encode, fields[i])
} else {
if (this._deepFind(this.message_to_encode, fields[i].field) && fields[i].type != 'array') {
Expand Down

0 comments on commit ebd7f79

Please sign in to comment.