formatting
This commit is contained in:
parent
cb2f700227
commit
a26a882446
@ -44,7 +44,7 @@ int add_directory(const char * const folder) {
|
||||
struct stat file_stat;
|
||||
entry_t entry;
|
||||
while ((mydirent = readdir(dir)) != NULL) {
|
||||
if (strcmp(mydirent->d_name, ".") == 0
|
||||
if (strcmp(mydirent->d_name, ".") == 0
|
||||
|| strcmp(mydirent->d_name, "..") == 0) {
|
||||
continue;
|
||||
}
|
||||
@ -230,7 +230,7 @@ int execute_directive_file(FILE * f) {
|
||||
|
||||
struct stat file_stat;
|
||||
int es = stat(touch_buffer, &file_stat);
|
||||
CHECK_OPEN(!(es == -1), touch_buffer, goto recovery); // XXX
|
||||
CHECK_OPEN(!(es == -1), touch_buffer, goto recovery);
|
||||
|
||||
touch_entry = (entry_t) {
|
||||
.name = touch_buffer,
|
||||
|
@ -183,7 +183,7 @@ class CMDTEST_mydir < Cmdtest::Testcase
|
||||
File.write('target.txt',
|
||||
[
|
||||
"000\t./mydir/.gitkeep",
|
||||
"002\t./mydir/script.sh"
|
||||
"002\t./mydir/script.sh",
|
||||
].join("\n")
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user