Skip to content

Commit

Permalink
Minor simplification
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Osterfeld <[email protected]>
  • Loading branch information
frankosterfeld committed Nov 25, 2024
1 parent 4ccc1ba commit 8f95ec2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/include/gnuradio-4.0/YamlPmt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,10 +816,9 @@ inline std::expected<std::string, ParseError> parseKey(ParseContext& ctx, std::s
}
ctx.consume(2 * quoteOffset + length);
ctx.consumeSpaces();
if (!ctx.atEndOfLine() && ctx.front() != ':') {
if (!ctx.consumeIfStartsWith(':')) {
return std::unexpected(ctx.makeError("Could not find key/value separator ':'"));
}
ctx.consume(1);
return *maybeKey;
}

Expand Down

0 comments on commit 8f95ec2

Please sign in to comment.