diff options
author | Kurtis Rader <krader@skepticism.us> | 2016-05-03 21:31:32 -0700 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-05-03 21:31:32 -0700 |
commit | 42068931c734437d6da19037721b04cf0d125c1c (patch) | |
tree | 203e6974b5863b145fa600a62ecc93a0d8f7a7fc /src/builtin.cpp | |
parent | e1a706bd7770e17e36de61eaf1597d39288e7f0d (diff) |
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.
Diffstat (limited to 'src/builtin.cpp')
-rw-r--r-- | src/builtin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); } |