Skip to content

Commit

Permalink
Revert "@wip Warn on missing description field"
Browse files Browse the repository at this point in the history
  • Loading branch information
southpolesteve authored Nov 14, 2016
1 parent 56f647b commit 44b4d1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
3 changes: 1 addition & 2 deletions migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ example:

```json
{
"FunctionName": "$PROJECT_NAME-$FUNCTION_NAME",
"Description": ""
"FunctionName": "$PROJECT_NAME-$FUNCTION_NAME"
}
```

Expand Down
9 changes: 4 additions & 5 deletions src/generate-function/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ export function index () {
export function handler(event, context, callback) {
// Replace below with your own code!
console.log(JSON.stringify(event))
console.log(JSON.stringify(context))
console.log(JSON.stringify(config))
console.log(event)
console.log(context)
console.log(config)
callback(null, { statusCode: 200, headers: {}, body: 'success!' })
}`
Expand All @@ -28,8 +28,7 @@ export function event () {

export function lambda (name) {
let obj = {
FunctionName: name,
Description: ''
FunctionName: name
}

return JSON.stringify(obj, null, 2)
Expand Down
4 changes: 0 additions & 4 deletions src/util/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ export function lambdaConfig (name) {
const functionConfig = readJSONSync(`functions/${name}/lambda.json`)
const projectConfig = readJSONSync(`lambda.json`)

if (!functionConfig.Description) {
console.log(`Warning: "functions/${name}/lambda.json" is missing a "Description" field.`)
}

return Object.assign(projectConfig, functionConfig)
}

Expand Down

0 comments on commit 44b4d1a

Please sign in to comment.