Skip to content

Commit 2b847b4

Browse files
committed
chore: linting
1 parent d97f4fb commit 2b847b4

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export enum ExposureMode {
2828
VeryLong = 'verylong',
2929
FixedFps = 'fixedfps',
3030
AntiShake = 'antishake',
31-
Fireworks = 'fireworks'
31+
Fireworks = 'fireworks',
3232
}
3333

3434
export enum AwbMode {
@@ -42,5 +42,5 @@ export enum AwbMode {
4242
Incandescent = 'incandescent',
4343
Flash = 'flash',
4444
Horizon = 'horizon',
45-
GreyWorld = 'greyworld'
45+
GreyWorld = 'greyworld',
4646
}

src/lib/shared-args.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { StillOptions } from "./still-camera";
2-
import { StreamOptions } from "./stream-camera";
1+
import { StillOptions } from './still-camera';
2+
import { StreamOptions } from './stream-camera';
33
import { Flip } from '..';
44

55
/**
@@ -11,7 +11,6 @@ import { Flip } from '..';
1111
*/
1212
export function getSharedArgs(options: StillOptions | StreamOptions): string[] {
1313
return [
14-
1514
/**
1615
* Width
1716
*/
@@ -30,23 +29,21 @@ export function getSharedArgs(options: StillOptions | StreamOptions): string[] {
3029
/**
3130
* Horizontal flip
3231
*/
33-
...(options.flip &&
34-
(options.flip === Flip.Horizontal || options.flip === Flip.Both)
32+
...(options.flip && (options.flip === Flip.Horizontal || options.flip === Flip.Both)
3533
? ['--hflip']
3634
: []),
3735

3836
/**
3937
* Vertical flip
4038
*/
41-
...(options.flip &&
42-
(options.flip === Flip.Vertical || options.flip === Flip.Both)
39+
...(options.flip && (options.flip === Flip.Vertical || options.flip === Flip.Both)
4340
? ['--vflip']
4441
: []),
4542

4643
/**
4744
* Shutter Speed
4845
*/
49-
...(options.shutter ? ["--shutter", options.shutter.toString()] : []),
46+
...(options.shutter ? ['--shutter', options.shutter.toString()] : []),
5047

5148
/**
5249
* ISO
@@ -76,6 +73,6 @@ export function getSharedArgs(options: StillOptions | StreamOptions): string[] {
7673
/**
7774
* Digital Gain
7875
*/
79-
...(options.digitalGain ? ['--digitalgain', options.digitalGain.toString()] : [])
76+
...(options.digitalGain ? ['--digitalgain', options.digitalGain.toString()] : []),
8077
];
8178
}

0 commit comments

Comments
 (0)