From 7e8cfa2ff8b69023510ad81d9a10e98e00014afc Mon Sep 17 00:00:00 2001
From: adriancid <adriancid@1962106.no-reply.drupal.org>
Date: Fri, 29 Jul 2022 13:41:42 -0400
Subject: [PATCH] Issue #3300778 by adriancid: Delete unnedeed validations for
 drush commands

---
 src/Commands/NodeRevisionDeleteCommands.php | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/src/Commands/NodeRevisionDeleteCommands.php b/src/Commands/NodeRevisionDeleteCommands.php
index 7f26e63..0a8c8ec 100644
--- a/src/Commands/NodeRevisionDeleteCommands.php
+++ b/src/Commands/NodeRevisionDeleteCommands.php
@@ -186,8 +186,6 @@ class NodeRevisionDeleteCommands extends DrushCommands {
    *
    * @command nrd:set-time
    * @aliases nrd-st, nrd-set-time
-   *
-   * @throws \Drush\Exceptions\UserAbortException
    */
   public function setTime(string $time = ''): void {
     // Getting an editable config because we will get and set a value.
@@ -425,19 +423,6 @@ class NodeRevisionDeleteCommands extends DrushCommands {
   public function deletePriorRevisionsValidate(CommandData $commandData): bool {
     $input = $commandData->input();
     $nid = $input->getArgument('nid');
-    $vid = $input->getArgument('vid');
-
-    // Nid argument must be numeric.
-    if (!is_numeric($nid)) {
-      $this->io()->error(dt('Argument nid must be numeric.'));
-      return FALSE;
-    }
-
-    // Vid argument must be numeric.
-    if (!is_numeric($vid)) {
-      $this->io()->error(dt('Argument vid must be numeric.'));
-      return FALSE;
-    }
 
     // Check if argument nid is a valid node id.
     $node = $this->entityTypeManager->getStorage('node')->load($nid);
-- 
GitLab