Description
There is a helper, FileExtensionHelpers, which is a unified static class for determining file type by extension. However, some parts of the codebase manually check file types without using that helper, e.g.:
|
public static bool ContainsExtension(string extension) |
|
=> extension is ".htm" or ".html" or ".svg"; |
Concerned code
~ Code search results ("ContainsExtension")
Gains
Requirements
- Create new helper methods
- Replacing methods with existing ones