mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:57:44 +00:00
HackStudio: Fix typo in C++ file extension mapping code
This looks like a copy past bug where we were checking "cc" twice instead of checking for the equivalent header extension. Found by Sonar Cloud.
This commit is contained in:
parent
0bd089b282
commit
511822c9fe
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ Language language_from_file_extension(const String& extension)
|
|||
{
|
||||
VERIFY(!extension.starts_with("."));
|
||||
if (extension == "c" || extension == "cc" || extension == "cxx" || extension == "cpp" || extension == "c++"
|
||||
|| extension == "h" || extension == "cc" || extension == "hxx" || extension == "hpp" || extension == "h++")
|
||||
|| extension == "h" || extension == "hh" || extension == "hxx" || extension == "hpp" || extension == "h++")
|
||||
return Language::Cpp;
|
||||
if (extension == "js" || extension == "mjs" || extension == "json")
|
||||
return Language::JavaScript;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue