Skip to content

Commit

Permalink
Split delete and return onto their own lines
Browse files Browse the repository at this point in the history
  • Loading branch information
darsain committed Aug 30, 2016
1 parent de62f85 commit 79f4caf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ Object.defineProperty(File.prototype, 'base', {
},
set: function(base) {
if (base == null) {
return delete this._base;
delete this._base;
return;
}
if (typeof base !== 'string' || !base) {
throw new Error('base must be a non-empty string, or null/undefined.');
Expand Down

0 comments on commit 79f4caf

Please sign in to comment.