Skip to content

Commit d64bddc

Browse files
authoredDec 12, 2024
chore: use US English instead of UK English (#1186)
1 parent 3421eae commit d64bddc

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed
 

‎internal/ifelse/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Package ifelse provides helpers for analysing the control flow in if-else chains,
1+
// Package ifelse provides helpers for analyzing the control flow in if-else chains,
22
// presently used by the following rules:
33
// - early-return
44
// - indent-error-flow

‎rule/bare_return.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ type bareReturnFinder struct {
6060
func (w bareReturnFinder) Visit(node ast.Node) ast.Visitor {
6161
_, ok := node.(*ast.FuncLit)
6262
if ok {
63-
// skip analysing function literals
64-
// they will be analysed by the lintBareReturnRule.Visit method
63+
// skip analyzing function literals
64+
// they will be analyzed by the lintBareReturnRule.Visit method
6565
return nil
6666
}
6767

‎rule/early_return.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (*EarlyReturnRule) checkIfElse(chain ifelse.Chain, args ifelse.Args) (strin
3535

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

‎rule/indent_error_flow.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (*IndentErrorFlowRule) checkIfElse(chain ifelse.Chain, args ifelse.Args) (s
3030

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

‎rule/superfluous_else.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (*SuperfluousElseRule) checkIfElse(chain ifelse.Chain, args ifelse.Args) (s
3232

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

0 commit comments

Comments
 (0)
Please sign in to comment.