Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 673 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 673 Bytes

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