Last analyzed 70c7a2f 4 months ago
Default analysis branch is
Currently analyzing run
Using a deprecated function, variable, constant or field GO-W1009
4 months ago4 months old
session.New is deprecated: Use NewSession functions to create sessions instead. NewSession has the same functionality as New except an error can be returned when the func is called instead of waiting to receive an error until a request is made.
 41func invokerFactory(o *Options) Invoker {
 42	if o.Config == nil {
 43		return lambda.New(session.New()) 44	}
 45	return lambda.New(session.Must(session.NewSession(o.Config)))