Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit cc43de6

Browse files
committed
add comment
Signed-off-by: Michael Telatynski <[email protected]>
1 parent af383c5 commit cc43de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Avatar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function urlForColor(color) {
8282
const colorToDataURLCache = new Map();
8383

8484
export function defaultAvatarUrlForString(s) {
85-
if (!s) return "";
85+
if (!s) return ""; // XXX: should never happen but empirically does by evidence of a rageshake
8686
const defaultColors = ['#0DBD8B', '#368bd6', '#ac3ba8'];
8787
let total = 0;
8888
for (let i = 0; i < s.length; ++i) {

0 commit comments

Comments
 (0)