From 2cabd107bf5b304442cf858f0b988f42b088251e Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Sun, 22 Aug 2021 15:09:18 +0200
Subject: [PATCH] Useless capture

---
 src/Cache.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Cache.cpp b/src/Cache.cpp
index 45fc852d9..bc364c345 100644
--- a/src/Cache.cpp
+++ b/src/Cache.cpp
@@ -1135,7 +1135,7 @@ Cache::runMigrations()
            [this]() {
                    try {
                            auto txn      = lmdb::txn::begin(env_, nullptr);
-                           auto try_drop = [this, &txn](const std::string &dbName) {
+                           auto try_drop = [&txn](const std::string &dbName) {
                                    try {
                                            auto db = lmdb::dbi::open(txn, dbName.c_str());
                                            db.drop(txn, true);
-- 
GitLab