Passed
Push — master ( f28044...8bf019 )
by Felipe Catão do
01:08
created

routesDoc.routesCreated   A

Complexity

Conditions 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 2
1
import EngineApp from '../../Framework/engine.js'
2
import routes from '../routes/routes.js'
3
import article from '../components/article.js'
4
5
var isCreate=false
6
var eng=new EngineApp()
7
8
class routesDoc{
9
    routesCreated(){
10
        var bd = this.bind(routes)
0 ignored issues
show
Unused Code introduced by
The variable bd seems to be never used. Consider removing it.
Loading history...
11
        //sistemas De rotas
12
        if(isCreate==false){
0 ignored issues
show
Best Practice introduced by
Comparing isCreate to false using the == operator is not safe. Consider using === instead.
Loading history...
13
            eng.routesEngine.registerRoute("http://127.0.0.1:5500/LavineWiki/index.html#docs","this.teste")
14
        }
15
        isCreate=true
16
    }
17
18
}
19
20
21
export default routesDoc
22