Fixing warning messages

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2013-05-20 10:30:37 -07:00
parent d84a0f6e05
commit a78fad958f
4 changed files with 3 additions and 5 deletions

View File

@@ -147,7 +147,7 @@ namespace Orchard.Tests.ContentManagement {
_transaction.Dispose(); _transaction.Dispose();
} }
catch (Exception e) { catch {
} }
finally { finally {
_transaction = null; _transaction = null;

View File

@@ -230,8 +230,6 @@ namespace Orchard.Tests.DataMigration {
public int UpdateFrom1() { public int UpdateFrom1() {
throw new Exception(); throw new Exception();
return 2;
} }
public int UpdateFrom2() { public int UpdateFrom2() {

View File

@@ -64,7 +64,7 @@ namespace Orchard.MediaLibrary.Controllers {
} }
} }
} }
catch (Exception e) { catch {
return View(viewModel); return View(viewModel);
} }

View File

@@ -129,7 +129,7 @@ namespace Orchard.Data.Migration {
_transactionManager.RequireNew(); _transactionManager.RequireNew();
} }
catch (Exception e) { catch {
_transactionManager.Cancel(); _transactionManager.Cancel();
} }