Skip to content

Refactor single argument functions #22

@tshemsedinov

Description

@tshemsedinov

We have different code style for single argument functions in Metarhia modules.
Sometimes we use (par) => par in other places par => par. I propose to use par => par in most places except special cases described below.
So I propose to refactor core modules: common, jstp, metasync, metaschema, globalstorage, sandboxed-fs, impress, impress-cli, metatests, metacom, concolor, metalog, tickplate, do. @JuliaGerasymenko can do this when she have a free time from front-end tasks.

Exceptions:

const functionWithDescription = (
  // In single-argument functions with large description
  par // string, meaning of par argument
  // Returns: string, meaning of result value
) => {
  // implementation
};

/cc @aqrln @lundibundi @nechaido @belochub @alinkedd

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions