Skip to content

Commit

Permalink
fix(preconditions): make options optional (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stitch07 authored Feb 4, 2021
1 parent ff33bb8 commit ecc5323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/structures/Precondition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export abstract class Precondition extends Piece {
* Constructs a [[PreconditionError]] with the precondition parameter set to `this`.
* @param options The information.
*/
public error(options: Omit<PreconditionError.Options, 'precondition'>): PreconditionResult {
public error(options: Omit<PreconditionError.Options, 'precondition'> = {}): PreconditionResult {
return err(new PreconditionError({ precondition: this, ...options }));
}
}
Expand Down

0 comments on commit ecc5323

Please sign in to comment.