~emersion/drmdb

f68758e99af14f97310364917a913a9b51c05d63 — Simon Ser 9 months ago c51264f
Fix 500 when accessing object property page
1 files changed, 1 insertions(+), 1 deletions(-)

M drm.go
M drm.go => drm.go +1 -1
@@ 52,7 52,7 @@ func mergeSpec(a, b interface{}) (interface{}, error) {
		return mergeSpecRange(a, b.(*drmtree.PropertySpecRange)), nil
	case drmtree.PropertySpecEnum:
		return mergeSpecEnum(a, b.(drmtree.PropertySpecEnum)), nil
	case *drm.ObjectType:
	case drm.ObjectType:
		if a != b {
			return nil, fmt.Errorf("mismatched object types: %v and %v", a, b)
		}