@@ -36,8 +36,8 @@ enum GetColumnMetadataType { DATA_TYPE, NAME };
3636
3737class NodeQueryResultGetColumnMetadataAsyncWorker : public Napi ::AsyncWorker {
3838public:
39- NodeQueryResultGetColumnMetadataAsyncWorker (
40- Napi::Function& callback, NodeQueryResult* nodeQueryResult, GetColumnMetadataType type)
39+ NodeQueryResultGetColumnMetadataAsyncWorker (Napi::Function& callback,
40+ NodeQueryResult* nodeQueryResult, GetColumnMetadataType type)
4141 : AsyncWorker(callback), nodeQueryResult(nodeQueryResult), type(type) {}
4242
4343 ~NodeQueryResultGetColumnMetadataAsyncWorker () override = default ;
@@ -53,7 +53,9 @@ class NodeQueryResultGetColumnMetadataAsyncWorker : public Napi::AsyncWorker {
5353 } else {
5454 result = nodeQueryResult->queryResult ->getColumnNames ();
5555 }
56- } catch (const std::exception& exc) { SetError (std::string (exc.what ())); }
56+ } catch (const std::exception& exc) {
57+ SetError (std::string (exc.what ()));
58+ }
5759 }
5860
5961 inline void OnOK () override {
@@ -86,7 +88,9 @@ class NodeQueryResultGetNextAsyncWorker : public Napi::AsyncWorker {
8688 cppTuple.reset ();
8789 }
8890 cppTuple = nodeQueryResult->queryResult ->getNext ();
89- } catch (const std::exception& exc) { SetError (std::string (exc.what ())); }
91+ } catch (const std::exception& exc) {
92+ SetError (std::string (exc.what ()));
93+ }
9094 }
9195
9296 inline void OnOK () override {
0 commit comments