]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix weird logic
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 Jul 2021 17:45:41 +0000 (18:45 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 Jul 2021 17:45:41 +0000 (18:45 +0100)
src/libserver/html/html.cxx

index 854386020962b453576575a08048454b51687b71..e1550f411d7787f09c5b64ffd4cdca7d4b3e9b63 100644 (file)
@@ -1596,8 +1596,9 @@ html_process_input(rspamd_mempool_t *pool,
                                                msg_info_pool ("cannot parse css: %*s",
                                                                (int)err_str.size(), err_str.data());
                                        }
-
-                                       hc->css_style = ret_maybe.value();
+                                       else {
+                                               hc->css_style = ret_maybe.value();
+                                       }
                                }
 
                                p += end_style;