From 1c8e0746623279a55cb1e4c830cf8dd53f79df81 Mon Sep 17 00:00:00 2001 From: mogita Date: Mon, 24 Jun 2019 13:27:22 +0800 Subject: [PATCH] fix: remove redundant line breaks --- server/models/Collection.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/models/Collection.js b/server/models/Collection.js index f030371e3..192613d21 100644 --- a/server/models/Collection.js +++ b/server/models/Collection.js @@ -239,7 +239,6 @@ Collection.prototype.updateDocument = async function( this.documentStructure = updateChildren(this.documentStructure); await this.save({ transaction }); await transaction.commit(); - } catch (err) { if (transaction) { await transaction.rollback(); @@ -296,7 +295,6 @@ Collection.prototype.removeDocumentInStructure = async function( transaction, }); await transaction.commit(); - } catch (err) { if (transaction) { await transaction.rollback();