Skip to content

Commit f818d26

Browse files
committed
chapter 03: instead of throwing exception, don't do nothing... silent behavior... we are lying to the user of our class...
1 parent afc3aa2 commit f818d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter-03-the-liskov-substitution-principle/dropboxFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function dropboxFile() {
1313
function rename(name) {}
1414

1515
function changeOwner(user, group) {
16-
new Error('Not implemented for Dropbox files');
16+
// silence... nothing happening here...
1717
}
1818

1919
return {

0 commit comments

Comments
 (0)