mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 01:32:14 -05: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
Notes:
sideshowbarker
2024-07-18 04:56:13 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/511822c9fe5 Pull-request: https://github.com/SerenityOS/serenity/pull/9720
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…
Reference in a new issue