From c914d298604ef7ad3934c3c213d3f8822d6646d9 Mon Sep 17 00:00:00 2001 From: Guillaume Buisson <contact@guillaume.dev> Date: ćšć, 20 5æ 2021 13:50:43 +0800 Subject: [PATCH] Several fixes (#120) --- src/library/hw_identifier/default_strategy.cpp | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/library/hw_identifier/default_strategy.cpp b/src/library/hw_identifier/default_strategy.cpp index 2ca1aa4..5c924f1 100644 --- a/src/library/hw_identifier/default_strategy.cpp +++ b/src/library/hw_identifier/default_strategy.cpp @@ -67,9 +67,12 @@ } return identifiers; } - +/** +* default strategy should never be used to validate an identifier. The strategy that was used in the first place to generate it +* should handle it. DefaultStrategy is just a switch. +*/ LCC_EVENT_TYPE DefaultStrategy::validate_identifier(const HwIdentifier& identifier) const { - // default strategy should always realize itself as a concrete strategy + // return IDENTIFIERS_MISMATCH; } -- Gitblit v1.9.1