From: Eric Sunshine Date: Sat, 11 May 2024 16:42:39 GMT Subject: Re: [PATCH 14/21] builtin/config: convert `do_not_match` to a local variable Message-ID: In-Reply-To: <2b40b784fe146b4d17de9accd4afc53144c93812.1715339393.git.ps@pks.im> On Sat, May 11, 2024 at 5:25 AM Patrick Steinhardt wrote: > The `do_not_match` variable is used by the `format_config()` callback as > an indicator whteher or not the passed regular expression is negated. It > is only ever set up by its only caller, `collect_config()` and can thus > easily be moved into the `collect_config_data` structure. s/whteher/whether/ > Do so to remove our reliance on global state. > > Signed-off-by: Patrick Steinhardt