Copy latest code to master
[ric-plt/resource-status-manager.git] / RSM / enums / message_direction.go
index 509292a..50c0d4f 100644 (file)
@@ -33,12 +33,6 @@ var messageDirectionEnumName = map[int32]string{
        2: "RIC_TO_RAN",
 }
 
-const (
-       UNKNOWN_MESSAGE_DIRECTION MessageDirection = 0
-       RAN_TO_RIC                MessageDirection = 1
-       RIC_TO_RAN                MessageDirection = 2
-)
-
 func (md MessageDirection) String() string {
        s, ok := messageDirectionEnumName[int32(md)]
        if ok {
@@ -51,9 +45,9 @@ func (md MessageDirection) MarshalJSON() ([]byte, error) {
        _, ok := messageDirectionEnumName[int32(md)]
 
        if !ok {
-               return nil,&json.UnsupportedValueError{}
+               return nil, &json.UnsupportedValueError{}
        }
 
-       v:= int32(md)
+       v := int32(md)
        return json.Marshal(v)
 }