streamdal/go-sdk

View on GitHub
helper/helper.go

Summary

Maintainability
A
1 hr
Test Coverage

Function WriteResponseToMemory has 8 return statements (exceeds 4 allowed).
Open

func WriteResponseToMemory(module api.Module, msg proto.Message) (uint64, error) {
    if module == nil {
        return 0, errors.New("module cannot be nil")
    }

Severity: Major
Found in helper/helper.go - About 50 mins to fix

    Function ReadRequestFromMemory has 6 return statements (exceeds 4 allowed).
    Open

    func ReadRequestFromMemory(module api.Module, msg proto.Message, ptr, length int32) error {
        if length <= 0 {
            return errors.New("length must be greater than 0")
        }
    
    
    Severity: Major
    Found in helper/helper.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status