Skip to content

Commit

Permalink
Remove duplicate check
Browse files Browse the repository at this point in the history
  • Loading branch information
rybakit committed Sep 9, 2014
1 parent e382c6a commit f40301d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/mg/PAGI/Client/Result/PlayResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,12 @@ public function __construct(IReadResult $result)
parent::__construct($result);
if ($result->hasData()) {
// check offset
if ($result->hasData()) {
$data = explode('=', $result->getData());
if (isset($data[1])) {
if ($data[1] == 0) {
throw new SoundFileException('Invalid format?');
}
$data = explode('=', $result->getData());
if (isset($data[1])) {
if ($data[1] == 0) {
throw new SoundFileException('Invalid format?');
}
}
}
}
}
}

0 comments on commit f40301d

Please sign in to comment.