summaryrefslogtreecommitdiff
path: root/coccinelle/empty-or-dash.cocci
blob: 56246affaa0dee1b2e18da1ae1fe8a14bd8faa7b (plain)
1
2
3
4
5
6
/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
expression s;
@@
- (isempty(s) || streq(s, "-"))
+ empty_or_dash(s)