Skip to content

Commit fce6724

Browse files
committed
format code
1 parent b7c932a commit fce6724

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/server/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ int main(int argc, const char** argv) {
405405
std::string output_format = j.value("output_format", "png");
406406
int output_compression = j.value("output_compression", 100);
407407
int width = default_gen_params.width > 0 ? default_gen_params.width : 512;
408-
int height = default_gen_params.width > 0 ? default_gen_params.height: 512;
408+
int height = default_gen_params.width > 0 ? default_gen_params.height : 512;
409409
if (!size.empty()) {
410410
auto pos = size.find('x');
411411
if (pos != std::string::npos) {
@@ -988,7 +988,6 @@ int main(int argc, const char** argv) {
988988
};
989989

990990
if (img2img) {
991-
992991
if (j.contains("init_images") && j["init_images"].is_array() && !j["init_images"].empty()) {
993992
std::string encoded = j["init_images"][0].get<std::string>();
994993
decode_image(init_image, encoded);

0 commit comments

Comments
 (0)