40
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)))
46}
Sometimes a function, variable, constant, field, or whole package becomes redundant or unnecessary but must be kept for compatibility with existing programs. These should not be used except for compatibility with legacy systems.