Skip to content

Commit

Permalink
chore: use US English instead of UK English (mgechev#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoVeille authored Dec 12, 2024
1 parent 3421eae commit d64bddc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion internal/ifelse/doc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package ifelse provides helpers for analysing the control flow in if-else chains,
// Package ifelse provides helpers for analyzing the control flow in if-else chains,
// presently used by the following rules:
// - early-return
// - indent-error-flow
Expand Down
4 changes: 2 additions & 2 deletions rule/bare_return.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ type bareReturnFinder struct {
func (w bareReturnFinder) Visit(node ast.Node) ast.Visitor {
_, ok := node.(*ast.FuncLit)
if ok {
// skip analysing function literals
// they will be analysed by the lintBareReturnRule.Visit method
// skip analyzing function literals
// they will be analyzed by the lintBareReturnRule.Visit method
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion rule/early_return.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (*EarlyReturnRule) checkIfElse(chain ifelse.Chain, args ifelse.Args) (strin

if chain.HasPriorNonDeviating && !chain.If.IsEmpty() {
// if we de-indent this block then a previous branch
// might flow into it, affecting program behaviour
// might flow into it, affecting program behavior
return "", false
}

Expand Down
2 changes: 1 addition & 1 deletion rule/indent_error_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (*IndentErrorFlowRule) checkIfElse(chain ifelse.Chain, args ifelse.Args) (s

if chain.HasPriorNonDeviating {
// if we de-indent the "else" block then a previous branch
// might flow into it, affecting program behaviour
// might flow into it, affecting program behavior
return "", false
}

Expand Down
2 changes: 1 addition & 1 deletion rule/superfluous_else.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (*SuperfluousElseRule) checkIfElse(chain ifelse.Chain, args ifelse.Args) (s

if chain.HasPriorNonDeviating {
// if we de-indent the "else" block then a previous branch
// might flow into it, affecting program behaviour
// might flow into it, affecting program behavior
return "", false
}

Expand Down

0 comments on commit d64bddc

Please sign in to comment.