diff --git a/src/BusProNet/Model/Notification.php b/src/BusProNet/Model/Notification.php index ee84cf7..e54078c 100644 --- a/src/BusProNet/Model/Notification.php +++ b/src/BusProNet/Model/Notification.php @@ -20,12 +20,6 @@ class Notification return true; } - // These weird and contradictory looking assertions are required because - // of the stupid API implementation that doesn't distinguish between error - // and success responses. - $responseIsError = 100 <= $this->code || $this->message === 'Daten konnten nicht gesendet werden.'; - $responseIsSuccess = 650 === $this->code && false === stripos($this->message, 'fehler'); - - return false === $responseIsError && true === $responseIsSuccess; + return 650 === $this->code && false === stripos($this->message, 'fehler'); } -} \ No newline at end of file +}