Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-gogia committed Mar 30, 2022
1 parent e66c0bd commit 07b65f1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/mapper/iac-providers/cft/config/lambda-function.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ func GetLambdaFunctionConfig(sf interface{}) []AWSResourceConfig {
return getLambdaConfig(l)
}

s := sf.(*serverless.Function)
return getServerlessConfig(s)
if s, ok := sf.(*serverless.Function); ok {
return getServerlessConfig(s)
}

return nil
}

func getServerlessConfig(sf *serverless.Function) []AWSResourceConfig {
Expand Down

0 comments on commit 07b65f1

Please sign in to comment.