Skip to content

Commit 2912972

Browse files
committed
Change Beverage
1 parent 8099eff commit 2912972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Decorator/Beverage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var Beverage = function()
33
this.sDescription = 'Unknown beverage';
44
};
55
Beverage.prototype.getDescription = function(){
6-
throw new Error("This method must be overwritten!");
6+
return this.sDescription;
77
};
88
Beverage.prototype.cost = function()
99
{

0 commit comments

Comments
 (0)