Skip to content

Commit

Permalink
incorrect exception throws
Browse files Browse the repository at this point in the history
  • Loading branch information
Masiukevich Maksim committed Feb 4, 2021
1 parent 8662634 commit fdd7623
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Sql/AmpPosgreSQL/AmpPostgreSQLResultSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,10 @@ function (): \Generator
{
return (string) $value;
}

throw new \RuntimeException('Empty last insert id result');
}
}

// @codeCoverageIgnoreStart
throw new \RuntimeException(
\sprintf('Unexpected result set type: `%s`', \get_class($this->originalResultSet))
);
return null;
}
catch (\Throwable $throwable)
{
Expand Down

0 comments on commit fdd7623

Please sign in to comment.