mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
remove dead code
This commit is contained in:
parent
695996d6e2
commit
5f362cbdbd
@ -28,10 +28,6 @@ export class ConsoleLogger extends BaseLogger {
|
|||||||
|
|
||||||
const excludedKeysFromTable = ["l", "id"];
|
const excludedKeysFromTable = ["l", "id"];
|
||||||
function filterValues(values: LogItemValues): LogItemValues | null {
|
function filterValues(values: LogItemValues): LogItemValues | null {
|
||||||
if (!values) {
|
|
||||||
// todo: is this check here unnecessary because LogItem will always have values?
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return Object.entries(values)
|
return Object.entries(values)
|
||||||
.filter(([key]) => !excludedKeysFromTable.includes(key))
|
.filter(([key]) => !excludedKeysFromTable.includes(key))
|
||||||
.reduce((obj: LogItemValues, [key, value]) => {
|
.reduce((obj: LogItemValues, [key, value]) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user