Hygiene: use null-coalescing operator when operating on tags
[lhc/web/wiklou.git] / includes / logging / LogEntry.php
index 5706f2d..937fa37 100644 (file)
@@ -776,11 +776,7 @@ class ManualLogEntry extends LogEntryBase {
 
                                        if ( $to === 'rc' || $to === 'rcandudp' ) {
                                                // save RC, passing tags so they are applied there
-                                               $tags = $this->getTags();
-                                               if ( is_null( $tags ) ) {
-                                                       $tags = [];
-                                               }
-                                               $rc->addTags( $tags );
+                                               $rc->addTags( $this->getTags() ?? [] );
                                                $rc->save( $rc::SEND_NONE );
                                        }