Skip to content

Commit

Permalink
Merge pull request #2 from n-peugnet/default-string
Browse files Browse the repository at this point in the history
Return attr as string by default, instead of error
  • Loading branch information
yaricom authored Dec 8, 2023
2 parents 19c26c2 + fba6b74 commit 9ea4cd2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions graphml/graphml.go
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,7 @@ func valueByType(val string, keyType DataType) (interface{}, error) {
} else {
return fVal, nil
}
case StringType:
return val, nil
default:
return nil, errors.New(fmt.Sprintf("unsupported value type: %s", keyType))
return val, nil
}
}

0 comments on commit 9ea4cd2

Please sign in to comment.