Skip to content

Commit

Permalink
refactor: change public parameter name
Browse files Browse the repository at this point in the history
Co-authored-by: Tom French <[email protected]>
  • Loading branch information
alexghr and TomAFrench committed Oct 20, 2023
1 parent ccb465a commit 4431d07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/wasm/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ struct DependencyGraph {
pub fn compile(
entry_point: String,
contracts: Option<bool>,
js_dependency_graph: Option<JsDependencyGraph>,
dependency_graph: Option<JsDependencyGraph>,
) -> Result<JsValue, JsCompileError> {
console_error_panic_hook::set_once();

let dependency_graph: DependencyGraph = if let Some(js_dependency_graph) = js_dependency_graph {
<JsValue as JsValueSerdeExt>::into_serde(&JsValue::from(js_dependency_graph))
let dependency_graph: DependencyGraph = if let Some(dependency_graph) = dependency_graph {
<JsValue as JsValueSerdeExt>::into_serde(&JsValue::from(dependency_graph))
.map_err(|err| err.to_string())?
} else {
DependencyGraph { root_dependencies: vec![], library_dependencies: HashMap::new() }
Expand Down

0 comments on commit 4431d07

Please sign in to comment.