Skip to content

Commit

Permalink
extract an assignment from the return expression
Browse files Browse the repository at this point in the history
  • Loading branch information
GooseOb committed Dec 6, 2024
1 parent bb78c5c commit ae46da4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "yt-defaulter",
"author": "GooseOb",
"version": "1.11.1",
"version": "1.11.2",
"repository": {
"type": "git",
"url": "git+https://github.com/GooseOb/YT-Defaulter.git"
Expand Down
3 changes: 2 additions & 1 deletion src/config/current-channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { value } from './value';
export const channel = {
username: '',
get() {
return (value.channels[this.username] ||= {});
value.channels[this.username] ||= {};
return value.channels[this.username];
},
};

0 comments on commit ae46da4

Please sign in to comment.