Skip to content

Commit 22a0706

Browse files
freshtonictobyhede
authored andcommitted
fix: fat finger fallout
1 parent 1e9634a commit 22a0706

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/cipherstash-proxy/src/encrypt/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ impl Encrypt {
5757

5858
let eql_version = {
5959
let client = connect::database(&config.database).await?;
60-
let rows = client.query("SELECT eql_v1.version() AS version;", &[]).await;
60+
let rows = client
61+
.query("SELECT eql_v1.version() AS version;", &[])
62+
.await;
6163
// let rows = client.query("SELECT 'WAT' AS version;", &[]).await;
6264

6365
match rows {

packages/eql-mapper/src/transformation_rules/replace_plaintext_eql_literals.rs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ impl<'ast> TransformationRule<'ast> for ReplacePlaintextEqlLiterals<'ast> {
2727
node_path: &NodePath<'ast>,
2828
target_node: &mut N,
2929
) -> Result<bool, EqlMapperError> {
30-
if let Some((Expr::Value(value),)) = node_path.last_1_as::<Expr>() {
3130
if self.would_edit(node_path, target_node) {
3231
if let Some((Expr::Value(value),)) = node_path.last_1_as::<Expr>() {
3332
if let Some(replacement) = self.encrypted_literals.remove(&NodeKey::new(value)) {

0 commit comments

Comments
 (0)