summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/itemmapper.php2
-rw-r--r--db/mapperfactory.php2
2 files changed, 1 insertions, 3 deletions
diff --git a/db/itemmapper.php b/db/itemmapper.php
index 884405e6b..c1a341aaa 100644
--- a/db/itemmapper.php
+++ b/db/itemmapper.php
@@ -44,7 +44,7 @@ class ItemMapper extends Mapper implements IMapper {
// prepare for the unexpected
if(!is_numeric($status)) {
- die(); die(); die('If you can read this something is terribly wrong');
+ die('If you can read this something is terribly wrong');
}
// now im gonna slowly stick them in the query, be careful!
diff --git a/db/mapperfactory.php b/db/mapperfactory.php
index 4597714d7..7d7c5d7cc 100644
--- a/db/mapperfactory.php
+++ b/db/mapperfactory.php
@@ -33,10 +33,8 @@ class MapperFactory {
switch($this->dbType) {
case 'pgsql':
return new \OCA\News\Db\Postgres\ItemMapper($this->db);
- break;
default:
return new ItemMapper($this->db);
- break;
}
}