diff --git a/public/app/core/history/richHistoryLocalStorage.ts b/public/app/core/history/richHistoryLocalStorage.ts index c32d94946c1..074961a4c44 100644 --- a/public/app/core/history/richHistoryLocalStorage.ts +++ b/public/app/core/history/richHistoryLocalStorage.ts @@ -63,9 +63,9 @@ export default class RichHistoryLocalStorage implements RichHistoryStorage { type: RichHistoryStorageWarning.LimitExceeded, message: `Query history reached the limit of ${MAX_HISTORY_ITEMS}. Old, not-starred items have been removed.`, }; - } else { - return undefined; } + + return undefined; } async deleteAll(): Promise {