Skip to content

Commit ada18aa

Browse files
abetomoDeviaVir
authored andcommitted
Refactoring and unnecessary package removal (#307)
* Remove unnecessary else It is unnecessary because it is returning in the if statement * Remove unused package
1 parent 8792c4e commit ada18aa

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/schedule_events.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ ScheduleEvents.prototype = {
1414
_ruleDescription: (params) => {
1515
if ('ScheduleDescription' in params && params.ScheduleDescription != null) {
1616
return `${params.ScheduleDescription}`
17-
} else {
18-
return `${params.ScheduleName} - ${params.ScheduleExpression}`
1917
}
18+
return `${params.ScheduleName} - ${params.ScheduleExpression}`
2019
},
2120

2221
_functionName: (params) => {

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"chai": "^2.0.0",
3535
"hoek": "^2.11.1",
3636
"mocha": "",
37-
"should": "",
3837
"standard": "^10.0.2"
3938
},
4039
"dependencies": {

0 commit comments

Comments
 (0)