Skip to content

Commit ea508e6

Browse files
committed
chore: add some code format
1 parent 4f45220 commit ea508e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/tag-list/tag-table.riot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
265265
if (this.state.orderType === 'date') {
266266
sortedTags.sort((e1, e2) =>
267267
!this.state.desc
268-
? (e2.creationDate?.getTime()||0) - (e1.creationDate?.getTime()||0)
269-
: (e1.creationDate?.getTime()||0) - (e2.creationDate?.getTime()||0)
268+
? (e2.creationDate?.getTime() || 0) - (e1.creationDate?.getTime() || 0)
269+
: (e1.creationDate?.getTime() || 0) - (e2.creationDate?.getTime() || 0)
270270
);
271271
} else if (this.state.orderType === 'size') {
272272
sortedTags.sort((e1, e2) => (!this.state.desc ? e2.size - e1.size : e1.size - e2.size));

src/scripts/theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const normalizeKey = (k) =>
3434
.replace(/^theme-/, '');
3535

3636
const preferDarkMode = ({ theme }) => {
37-
if (theme === 'auto' || theme === "") {
37+
if (theme === 'auto' || theme === '') {
3838
switch (localStorage.getItem(LOCAL_STORAGE_THEME)) {
3939
case 'dark':
4040
return true;

0 commit comments

Comments
 (0)