- Remove 'start-sql'

- no flow :c
This commit is contained in:
Jean-Louis Leysens 2019-12-05 16:34:39 +01:00
parent f019616675
commit 2d585eef17
No known key found for this signature in database
GPG key ID: 7AE214E8B113FC9A
2 changed files with 4 additions and 2 deletions

View file

@ -48,7 +48,7 @@ function RowParser(editor) {
return MODE.BETWEEN_REQUESTS;
} // shouldn't really happen
if (mode !== 'start' && mode !== 'start-sql') {
if (mode !== 'start') {
return MODE.IN_REQUEST;
}
let line = (session.getLine(row) || '').trim();

View file

@ -19,6 +19,8 @@
import _ from 'lodash';
const pipe = _.flow;
const utils = {};
utils.textFromRequest = function (request) {
@ -62,7 +64,7 @@ utils.reformatData = function (data, indent) {
// this operation can probably bundle A -> B with the B -> A functionality.
const collapseXLangMarkers = text => text.replace(`"""sql`, `"""`);
utils.collapseLiteralStrings = _.pipe(
utils.collapseLiteralStrings = pipe(
collapseXLangMarkers,
function (data) {
const splitData = data.split(`"""`);