Docusaurus: Duplicate code in readMetadata.js & versionFallback.js

Created on 3 Jun 2018  路  3Comments  路  Source: facebook/docusaurus

better engineering starter good first issue help wanted claimed

Most helpful comment

I would like to work on it ! 馃榾
Could you be a little bit more explicit on the problem to solve and how you want it to be solved ?

All 3 comments

I would like to work on it ! 馃榾
Could you be a little bit more explicit on the problem to solve and how you want it to be solved ?

It would be nice to refactor the code. Less code but same functionality.

cc @yangshun @JoelMarcey WDYT ?

@endiliey Yeah, this is a good idea.

Hi @ayshiff ...

I think one simple improvement you can make is to take the duplicate code and pull it out into its own file/module. Unless you are thinking of something else @endiliey ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lex111 picture lex111  路  3Comments

microbouji picture microbouji  路  3Comments

muuvmuuv picture muuvmuuv  路  3Comments

cheercroaker picture cheercroaker  路  3Comments

chandankumar4 picture chandankumar4  路  3Comments