mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Fix storybook errors
This commit is contained in:
@@ -24,7 +24,7 @@ export const _redactPath = (filePath: string): RedactFunction => {
|
|||||||
throw new TypeError("'filePath' must be a string");
|
throw new TypeError("'filePath' must be a string");
|
||||||
}
|
}
|
||||||
|
|
||||||
const filePathPattern = exports._pathToRegExp(filePath);
|
const filePathPattern = _pathToRegExp(filePath);
|
||||||
|
|
||||||
return (text: string): string => {
|
return (text: string): string => {
|
||||||
if (!is.string(text)) {
|
if (!is.string(text)) {
|
||||||
@@ -102,7 +102,7 @@ export const redactGroupIds = (text: string): string => {
|
|||||||
const createRedactSensitivePaths = (
|
const createRedactSensitivePaths = (
|
||||||
paths: ReadonlyArray<string>
|
paths: ReadonlyArray<string>
|
||||||
): RedactFunction => {
|
): RedactFunction => {
|
||||||
return compose(paths.map(filePath => exports._redactPath(filePath)));
|
return compose(paths.map(filePath => _redactPath(filePath)));
|
||||||
};
|
};
|
||||||
|
|
||||||
const sensitivePaths: Array<string> = [];
|
const sensitivePaths: Array<string> = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user