Skip to content

Commit

Permalink
leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
notJoon committed Jul 27, 2024
1 parent 27a8bd0 commit 635c249
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/lints/unnecessary_else.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ import (
// This rule considers an else block unnecessary if the if block ends with a return statement.
// In such cases, the else block can be removed and the code can be flattened to improve readability.
func DetectUnnecessaryElse(f string, node *ast.File, fset *token.FileSet) ([]tt.Issue, error) {
// fset := token.NewFileSet()
// node, err := parser.ParseFile(fset, f, nil, parser.ParseComments)
// if err != nil {
// return nil, err
// }

var issues []tt.Issue
ast.Inspect(node, func(n ast.Node) bool {
ifStmt, ok := n.(*ast.IfStmt)
Expand Down

0 comments on commit 635c249

Please sign in to comment.