Skip to content

Commit

Permalink
- Remove 'start-sql'
Browse files Browse the repository at this point in the history
- no flow :c
  • Loading branch information
jloleysens committed Dec 5, 2019
1 parent f019616 commit 2d585ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

import _ from 'lodash';

const pipe = _.flow;

const utils = {};

utils.textFromRequest = function (request) {
Expand Down Expand Up @@ -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(`"""`);
Expand Down

0 comments on commit 2d585ee

Please sign in to comment.