Skip to content

snkrdunk/empty_err_checker

Repository files navigation

empty_err_checker

Test

empty_err_checker is checking whether the return value 'err' is nil.

example

func inValidErrChecker() error {
	var err error
	isValid := isValid()
	if !isValid {
		return err // report this return err as invalid
	}
	return nil
}

Check the test code for detailed detection examples.

Installation

go install github.com/snkrdunk/empty_err_checker/cmd/empty_err_checker@latest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages