From 42068931c734437d6da19037721b04cf0d125c1c Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Tue, 3 May 2016 21:31:32 -0700 Subject: eliminate "useless parentheses" lint errors Some `oclint` errors regarding "useless parentheses" are meaningfull. But the vast majority are bogus in as much as removing the parentheses reduces readability. So fix a few of the egregious uses and otherwise suppress that error. --- src/builtin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/builtin.cpp') diff --git a/src/builtin.cpp b/src/builtin.cpp index 8ed2858b..615df6af 100644 --- a/src/builtin.cpp +++ b/src/builtin.cpp @@ -163,7 +163,7 @@ wcstring builtin_help_get(parser_t &parser, io_streams_t &streams, const wchar_t /// to an interactive screen, it may be shortened to fit the screen. void builtin_print_help(parser_t &parser, io_streams_t &streams, const wchar_t *cmd, output_stream_t &b) { - bool is_stderr = (&b == &streams.err); + bool is_stderr = &b == &streams.err; if (is_stderr) { b.append(parser.current_line()); } -- cgit v1.2.3