Skip to content

Commit

Permalink
Rename function to remove useless get prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jtran committed Feb 6, 2025
1 parent 1d93cd6 commit d89f59c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/wasm-lib/kcl/src/execution/exec_ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ impl Node<CallExpressionKw> {
Some(Operation::StdLibCall {
std_lib_fn: (&func).into(),
unlabeled_arg: args
.get_unlabeled_kw_arg_unconverted()
.unlabeled_kw_arg_unconverted()
.map(|arg| OpArg::new(OpKclValue::from(&arg.value), arg.source_range)),
labeled_args: op_labeled_args,
source_range: callsite,
Expand Down
4 changes: 2 additions & 2 deletions src/wasm-lib/kcl/src/std/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl Args {
}

/// Get the unlabeled keyword argument. If not set, returns None.
pub(crate) fn get_unlabeled_kw_arg_unconverted(&self) -> Option<&Arg> {
pub(crate) fn unlabeled_kw_arg_unconverted(&self) -> Option<&Arg> {
self.kw_args
.unlabeled
.as_ref()
Expand All @@ -146,7 +146,7 @@ impl Args {
T: FromKclValue<'a>,
{
let arg = self
.get_unlabeled_kw_arg_unconverted()
.unlabeled_kw_arg_unconverted()
.ok_or(KclError::Semantic(KclErrorDetails {
source_ranges: vec![self.source_range],
message: format!("This function requires a value for the special unlabeled first parameter, '{label}'"),
Expand Down

0 comments on commit d89f59c

Please sign in to comment.