Replace Conditional With Pattern Matching Refactoring Dev Community

Replace Conditional With Pattern Matching Refactoring Dev Community