Skip to content

Commit

Permalink
rm unused err
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Jan 24, 2024
1 parent acd7228 commit eae4d82
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 26 deletions.
3 changes: 1 addition & 2 deletions lexicons/app/bsky/unspecced/getTaggedSuggestions.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
}
}
}
},
"errors": [{ "name": "UnknownFeed" }]
}
},
"suggestion": {
"type": "object",
Expand Down
5 changes: 0 additions & 5 deletions packages/api/src/client/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7952,11 +7952,6 @@ export const schemaDict = {
},
},
},
errors: [
{
name: 'UnknownFeed',
},
],
},
suggestion: {
type: 'object',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,8 @@ export interface Response {
data: OutputSchema
}

export class UnknownFeedError extends XRPCError {
constructor(src: XRPCError) {
super(src.status, src.error, src.message, src.headers)
}
}

export function toKnownErr(e: any) {
if (e instanceof XRPCError) {
if (e.error === 'UnknownFeed') return new UnknownFeedError(e)
}
return e
}
Expand Down
5 changes: 0 additions & 5 deletions packages/bsky/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7952,11 +7952,6 @@ export const schemaDict = {
},
},
},
errors: [
{
name: 'UnknownFeed',
},
],
},
suggestion: {
type: 'object',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export interface HandlerSuccess {
export interface HandlerError {
status: number
message?: string
error?: 'UnknownFeed'
}

export type HandlerOutput = HandlerError | HandlerSuccess
Expand Down
5 changes: 0 additions & 5 deletions packages/pds/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7952,11 +7952,6 @@ export const schemaDict = {
},
},
},
errors: [
{
name: 'UnknownFeed',
},
],
},
suggestion: {
type: 'object',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export interface HandlerSuccess {
export interface HandlerError {
status: number
message?: string
error?: 'UnknownFeed'
}

export type HandlerOutput = HandlerError | HandlerSuccess
Expand Down

0 comments on commit eae4d82

Please sign in to comment.