src/read/rhino.js

Maintainability

94.50

Lines of code

20

Created with Raphaël 2.1.002550751002019-3-122018-12-32018-8-22018-5-9

2019-10-30
Maintainability: 94.5

Created with Raphaël 2.1.0051015202019-3-122018-12-32018-8-22018-5-9

2019-10-30
Lines of Code: 20

Difficulty

3.25

Estimated Errors

0.03

Function weight

By Complexity

Created with Raphaël 2.1.0_gpfReadRhino1

By SLOC

Created with Raphaël 2.1.0_gpfReadRhino5
1
/**
2
 * @file Rhino File system read implementation
3
 * @since 0.2.2
4
 */
5
/*#ifndef(UMD)*/
6
"use strict";
7
/*global _GPF_HOST*/ // Host types
8
/*global _gpfReadSetImplIf*/ // Set the read implementation if the host matches
9
/*#endif*/
10
 
11
/*jshint rhino: true*/
12
/*eslint-env rhino*/
13
 
14
function _gpfReadRhino (path) {
15
    return new Promise(function (resolve) {
16
        resolve(readFile(path));
17
    });
18
}
19
 
20
_gpfReadSetImplIf(_GPF_HOST.RHINO, _gpfReadRhino);