Passed
Push — master ( 8b64fb...938976 )
by Zhenyu
01:13
created

index.js ➔ ???   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
c 0
b 0
f 0
nc 1
dl 0
loc 6
rs 10
nop 0
1
import { validate, join } from 'utils';
2
import { FOO, BAR } from 'constants';
3
4
/**
5
 * An example function just to show the build and ci pipeline works.
6
 * @returns {string} Hello world.
7
 */
8
export default () => {
9
  if (validate({ foo: FOO, bar: BAR })) {
10
    return join(FOO, BAR);
11
  }
12
  throw Error('Something interesting has happened ;-)');
13
};
14