Skip to content

Commit

Permalink
fix: typo in method name
Browse files Browse the repository at this point in the history
  • Loading branch information
thatRichman committed Jan 26, 2025
1 parent 49d179d commit 344fc57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions wdl-ast/src/v1/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ impl CommandSection {
/// Counts the leading whitespace of the command.
///
/// If the command has mixed indentation, this will return None.
pub fn count_whitepsace(&self) -> Option<usize> {
pub fn count_whitespace(&self) -> Option<usize> {
let mut min_leading_spaces = usize::MAX;
let mut min_leading_tabs = usize::MAX;
let mut parsing_leading_whitespace = false; // init to false so that the first line is skipped
Expand Down Expand Up @@ -998,7 +998,7 @@ impl CommandSection {
}

// Return immediately if command contains mixed indentation
let num_stripped_chars = self.count_whitepsace()?;
let num_stripped_chars = self.count_whitespace()?;

// If there is no leading whitespace, we're done
if num_stripped_chars == 0 {
Expand Down
2 changes: 1 addition & 1 deletion wdl-lint/src/rules/shellcheck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ fn shellcheck_lint(
///
/// If the section contains mixed indentation, returns None.
fn sanitize_command(section: &CommandSection) -> Option<(String, HashSet<String>, usize)> {
let amount_stripped = section.count_whitepsace()?;
let amount_stripped = section.count_whitespace()?;
let mut sanitized_command = String::new();
let mut decls = HashSet::new();
let mut needs_quotes = true;
Expand Down

0 comments on commit 344fc57

Please sign in to comment.