master
if (ResultType.fromText msgType) == ResultType.Success then
Found
(ResultType.fromText msgType) == ResultType.Success
Perhaps
ResultType.fromText msgType == ResultType.Success