Skip to content

A tool to identify unnecessary ifs and returns in Go

Notifications You must be signed in to change notification settings

yanpozka/ohreally

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Oh Really!

A tool to identify this kind of code:

if err != nil {
    return err
}
return nil

that can be written as just:

return err

Install and try it:

go get -v -u github.com/yanpozka/ohreally

cd $GOPATH github.com/yanpozka/ohreally/example

ohreally -file example.go

About

A tool to identify unnecessary ifs and returns in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages