Skip to content

Commit

Permalink
🚨 nullish判定を明確化
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEKE320 committed Apr 6, 2024
1 parent a7a4af9 commit 08cb5fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astro/src/lib/vars.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// 正しくbool値を処理。 `True` 以外は全て False として処理
const stringToBoolean = (value: string | null | undefined): boolean => {
if (!value) {
if (value == null) {
return false;
}
return value.toLowerCase() === 'true';
Expand Down

0 comments on commit 08cb5fe

Please sign in to comment.