Skip to content

Commit

Permalink
nit: replace if by switch
Browse files Browse the repository at this point in the history
  • Loading branch information
spylogsster committed Jul 8, 2022
1 parent 8e0a621 commit 1f4b1d7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions browser/importer/brave_external_process_importer_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@

namespace {
bool ShouldUseBraveImporter(importer::ImporterType type) {
if (type == importer::TYPE_CHROME || type == importer::TYPE_EDGE_CHROMIUM ||
type == importer::TYPE_VIVALDI)
return true;

switch (type) {
case importer::TYPE_CHROME:
case importer::TYPE_EDGE_CHROMIUM:
case importer::TYPE_VIVALDI:
return true;
default:
return false;
}
return false;
}
} // namespace
Expand Down

0 comments on commit 1f4b1d7

Please sign in to comment.