Skip to content

Commit

Permalink
remove unneeded change
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Sep 19, 2021
1 parent f82d2bd commit 1a2d9a6
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import type { RequestHandler, RouteMethod, RequestHandlerContext } from 'src/core/server';
import { ErrorIndexPatternNotFound } from '../../error';
// import { SavedObjectNotFound } from '../../../../../kibana_utils/common';

interface ErrorResponseBody {
message: string;
Expand Down Expand Up @@ -53,7 +52,6 @@ export const handleErrors = <

const is404 =
(error as ErrorIndexPatternNotFound).is404 || (error as any)?.output?.statusCode === 404;
// || error instanceof SavedObjectNotFound;

if (is404) {
return response.notFound({
Expand Down

0 comments on commit 1a2d9a6

Please sign in to comment.