Fossil SCM
Code style cleanup.
Commit
24273fd0c429d71dbc134acc3999c7d3359ab57e
Parent
3ede3702a27f6c8…
1 file changed
+1
-2
+1
-2
| --- src/th_main.c | ||
| +++ src/th_main.c | ||
| @@ -529,16 +529,15 @@ | ||
| 529 | 529 | void *p, |
| 530 | 530 | int argc, |
| 531 | 531 | const char **argv, |
| 532 | 532 | int *argl |
| 533 | 533 | ){ |
| 534 | - int openRepository; | |
| 535 | - | |
| 536 | 534 | if( argc!=1 && argc!=2 ){ |
| 537 | 535 | return Th_WrongNumArgs(interp, "repository ?BOOLEAN?"); |
| 538 | 536 | } |
| 539 | 537 | if( argc==2 ){ |
| 538 | + int openRepository = 0; | |
| 540 | 539 | if( Th_ToInt(interp, argv[1], argl[1], &openRepository) ){ |
| 541 | 540 | return TH_ERROR; |
| 542 | 541 | } |
| 543 | 542 | if( openRepository ) db_find_and_open_repository(OPEN_OK_NOT_FOUND, 0); |
| 544 | 543 | } |
| 545 | 544 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -529,16 +529,15 @@ | |
| 529 | void *p, |
| 530 | int argc, |
| 531 | const char **argv, |
| 532 | int *argl |
| 533 | ){ |
| 534 | int openRepository; |
| 535 | |
| 536 | if( argc!=1 && argc!=2 ){ |
| 537 | return Th_WrongNumArgs(interp, "repository ?BOOLEAN?"); |
| 538 | } |
| 539 | if( argc==2 ){ |
| 540 | if( Th_ToInt(interp, argv[1], argl[1], &openRepository) ){ |
| 541 | return TH_ERROR; |
| 542 | } |
| 543 | if( openRepository ) db_find_and_open_repository(OPEN_OK_NOT_FOUND, 0); |
| 544 | } |
| 545 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -529,16 +529,15 @@ | |
| 529 | void *p, |
| 530 | int argc, |
| 531 | const char **argv, |
| 532 | int *argl |
| 533 | ){ |
| 534 | if( argc!=1 && argc!=2 ){ |
| 535 | return Th_WrongNumArgs(interp, "repository ?BOOLEAN?"); |
| 536 | } |
| 537 | if( argc==2 ){ |
| 538 | int openRepository = 0; |
| 539 | if( Th_ToInt(interp, argv[1], argl[1], &openRepository) ){ |
| 540 | return TH_ERROR; |
| 541 | } |
| 542 | if( openRepository ) db_find_and_open_repository(OPEN_OK_NOT_FOUND, 0); |
| 543 | } |
| 544 |