Skip to content

Commit

Permalink
Fix '->' marker logic bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bandreghetti committed Oct 8, 2020
1 parent 5c24873 commit b37dd0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/validateProp.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func validateProp(prop interface{}, propDef AssetProp) (interface{}, error) {
// Validate data types
if !isSubAsset {
dataType, dataTypeExists := dataTypeMap[dataTypeName]
if dataTypeExists {
if !dataTypeExists {
return nil, errors.NewCCError(fmt.Sprintf("invalid data type named '%s'", propDef.DataType), 400)
}
_, parsedProp, err = dataType.Parse(prop)
Expand All @@ -54,7 +54,7 @@ func validateProp(prop interface{}, propDef AssetProp) (interface{}, error) {
// Check if type is defined in assetList
subAssetType := FetchAssetType(dataTypeName)
if subAssetType == nil {
return nil, errors.NewCCError(fmt.Sprintf("invalid data type named '%s'", propDef.DataType), 400)
return nil, errors.NewCCError(fmt.Sprintf("invalid asset type named '%s'", propDef.DataType), 400)
}

// Check if received subAsset is a map
Expand Down

0 comments on commit b37dd0d

Please sign in to comment.