Skip to content

Commit 26cd29c

Browse files
committed
chore: remove whitespace around conditional checks in export methods
Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>
1 parent 8199040 commit 26cd29c

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/livemaker.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public abstract class LivePhotoConv.LiveMaker : Object {
168168

169169
inline int64 export_with_main_image () throws Error {
170170
this.metadata.open_path (main_image_path);
171-
if (! this._export_original_metadata) {
171+
if (!this._export_original_metadata) {
172172
// Need to manually clear the metadata if it's not to be exported
173173
// Because the main image including the metadata is fully copied
174174
this.metadata.clear ();

src/livemakerffmpeg.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class LivePhotoConv.LiveMakerFFmpeg : LivePhotoConv.LiveMaker {
5151
*/
5252
public override int64 export_with_video_only () throws Error {
5353
this.metadata.open_path (this.video_path);
54-
if (! this.export_original_metadata) {
54+
if (!this.export_original_metadata) {
5555
this.metadata.clear ();
5656
}
5757

@@ -113,7 +113,7 @@ public class LivePhotoConv.LiveMakerFFmpeg : LivePhotoConv.LiveMaker {
113113
if (is_supported_main_image (main_file)) {
114114
// If the main image is supported, copy it to the live photo
115115
this.metadata.open_path (this.main_image_path);
116-
if (! this.export_original_metadata) {
116+
if (!this.export_original_metadata) {
117117
this.metadata.clear ();
118118
}
119119

src/livemakergst.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class LivePhotoConv.LiveMakerGst : LivePhotoConv.LiveMaker {
4141
*/
4242
public override int64 export_with_video_only () throws Error {
4343
this.metadata.open_path (this.video_path);
44-
if (! this.export_original_metadata) {
44+
if (!this.export_original_metadata) {
4545
this.metadata.clear ();
4646
}
4747

@@ -85,7 +85,7 @@ public class LivePhotoConv.LiveMakerGst : LivePhotoConv.LiveMaker {
8585
if (is_supported_main_image (main_file)) {
8686
// If the main image is supported, copy it to the live photo
8787
this.metadata.open_path (this.main_image_path);
88-
if (! this.export_original_metadata) {
88+
if (!this.export_original_metadata) {
8989
this.metadata.clear ();
9090
}
9191

0 commit comments

Comments
 (0)