mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 16:14:43 -04:00
fix(alias): remove default for primary
To make the create method more consistent with the guidelines, this commit removes the default value from the `primary` parameter. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
04412826a7
commit
c675dd0e9e
3 changed files with 6 additions and 6 deletions
|
@ -54,7 +54,7 @@ export class Alias {
|
|||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
private constructor() {}
|
||||
|
||||
static create(name: string, note: Note, primary = false): Omit<Alias, 'id'> {
|
||||
static create(name: string, note: Note, primary: boolean): Omit<Alias, 'id'> {
|
||||
const alias = new Alias();
|
||||
alias.name = name;
|
||||
alias.primary = primary;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue