Skip to content

Commit

Permalink
refactor: remove redundant references (#25571)
Browse files Browse the repository at this point in the history
Co-authored-by: Sandy Spicer <[email protected]>
  • Loading branch information
hamirmahal and aspicer authored Nov 15, 2024
1 parent 2b2e7e4 commit 39659d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions funnel-udf/src/steps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const DEFAULT_ENTERED_TIMESTAMP: EnteredTimestamp = EnteredTimestamp {
};

pub fn process_line(line: &str) -> Value {
let args = parse_args(&line);
let args = parse_args(line);
let mut aggregate_funnel_row = AggregateFunnelRow {
results: Vec::with_capacity(args.prop_vals.len()),
breakdown_step: Option::None,
Expand Down Expand Up @@ -112,7 +112,7 @@ impl AggregateFunnelRow {
self.process_event(
args,
&mut vars,
&events_with_same_timestamp[0],
events_with_same_timestamp[0],
prop_val,
false
);
Expand Down Expand Up @@ -147,7 +147,7 @@ impl AggregateFunnelRow {
args,
&mut vars,
&event,
&prop_val,
prop_val,
true
);
}
Expand Down Expand Up @@ -261,4 +261,4 @@ impl AggregateFunnelRow {
}
}
}
}
}
6 changes: 3 additions & 3 deletions funnel-udf/src/trends.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const DEFAULT_ENTERED_TIMESTAMP: EnteredTimestamp = EnteredTimestamp {
};

pub fn process_line(line: &str) -> Value {
let args = parse_args(&line);
let args = parse_args(line);
let mut aggregate_funnel_row = AggregateFunnelRow {
results: HashMap::new(),
breakdown_step: Option::None,
Expand Down Expand Up @@ -128,7 +128,7 @@ impl AggregateFunnelRow {
self.process_event(
args,
&mut vars,
&event,
event,
prop_val,
);
}
Expand Down Expand Up @@ -242,4 +242,4 @@ impl AggregateFunnelRow {
}
}
}
}
}

0 comments on commit 39659d7

Please sign in to comment.