diff options
author | Teddy Wing | 2023-05-24 18:32:09 +0200 |
---|---|---|
committer | Teddy Wing | 2023-05-24 18:32:09 +0200 |
commit | a2b4aadc3c35d06335aced394a2f0e03bff95e18 (patch) | |
tree | 4957e80912f3dc47319e5cb35dc86ced7f2ad927 /defererr.go | |
parent | 302e2a3f46a715cfdcdfa79bde89eafbf351c177 (diff) | |
download | godefererr-a2b4aadc3c35d06335aced394a2f0e03bff95e18.tar.bz2 |
Fix name of `isfirstErrorDeferEndPosSet`
Wasn't using the correct case because I had auto-completed from the
field name.
Diffstat (limited to 'defererr.go')
-rw-r--r-- | defererr.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/defererr.go b/defererr.go index 7f8bf5d..d21b0b6 100644 --- a/defererr.go +++ b/defererr.go @@ -50,7 +50,7 @@ func (s *functionState) setFirstErrorDeferEndPos(pos token.Pos) { s.firstErrorDeferEndPos = pos } -func (s *functionState) isfirstErrorDeferEndPosSet() bool { +func (s *functionState) isFirstErrorDeferEndPosSet() bool { return s.firstErrorDeferEndPos != -1 } @@ -143,7 +143,7 @@ func checkFunctions(pass *analysis.Pass, node ast.Node) { fmt.Printf("fState: %#v\n", fState) - if !fState.isfirstErrorDeferEndPosSet() { + if !fState.isFirstErrorDeferEndPosSet() { return true } |