Skip to content

Commit

Permalink
Refactoring and unnecessary package removal (#307)
Browse files Browse the repository at this point in the history
* Remove unnecessary else

It is unnecessary because it is returning in the if statement

* Remove unused package
  • Loading branch information
abetomo authored and DeviaVir committed Jun 4, 2017
1 parent 8792c4e commit ada18aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions lib/schedule_events.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ ScheduleEvents.prototype = {
_ruleDescription: (params) => {
if ('ScheduleDescription' in params && params.ScheduleDescription != null) {
return `${params.ScheduleDescription}`
} else {
return `${params.ScheduleName} - ${params.ScheduleExpression}`
}
return `${params.ScheduleName} - ${params.ScheduleExpression}`
},

_functionName: (params) => {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"chai": "^2.0.0",
"hoek": "^2.11.1",
"mocha": "",
"should": "",
"standard": "^10.0.2"
},
"dependencies": {
Expand Down

0 comments on commit ada18aa

Please sign in to comment.