Skip to content

Commit

Permalink
Merge pull request #14 from webability-go/late-night
Browse files Browse the repository at this point in the history
patch v0.0.13
  • Loading branch information
metalwolf committed Apr 13, 2020
2 parents e9fce1d + 1910799 commit eae40f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -20,6 +20,10 @@ TO DO:
Version Changes Control
=======================

v0.0.12 - 2020-04-13
------------------------
- Correction on node: JSON Marshal, wrong ',' calculations (again)

v0.0.12 - 2020-04-13
------------------------
- Correction on node: JSON Marshal, wrong ',' calculations
Expand Down
6 changes: 3 additions & 3 deletions node.go
Expand Up @@ -292,12 +292,12 @@ func (n *Node) MarshalJSON() ([]byte, error) {
buffer.WriteString("\"type\":\"" + n.Type + "\"")
}
for akey, avalue := range n.attributes {
if count > 0 {
buffer.WriteString(",")
}
if avalue == "" {
continue
}
if count > 0 {
buffer.WriteString(",")
}
jsonValue, err := json.Marshal(avalue)
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion wajaf.go
Expand Up @@ -7,7 +7,7 @@
package wajaf

// VERSION is the used version nombre of the XCore library.
const VERSION = "0.0.12"
const VERSION = "0.0.13"

// LOG is the flag to activate logging on the library.
// if LOG is set to TRUE, LOG indicates to the XCore libraries to log a trace of functions called, with most important parameters.
Expand Down

0 comments on commit eae40f0

Please sign in to comment.