mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Remove useless "return;" lines
Discussion: https://postgr.es/m/20191128144653.GA27883@alvherre.pgsql
This commit is contained in:
@@ -317,8 +317,6 @@ _WriteData(ArchiveHandle *AH, const void *data, size_t dLen)
|
||||
if (dLen > 0)
|
||||
/* WriteDataToArchive() internally throws write errors */
|
||||
WriteDataToArchive(AH, cs, data, dLen);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -644,8 +642,6 @@ _WriteBuf(ArchiveHandle *AH, const void *buf, size_t len)
|
||||
if (fwrite(buf, 1, len, AH->FH) != len)
|
||||
WRITE_ERROR_EXIT;
|
||||
ctx->filePos += len;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -663,8 +659,6 @@ _ReadBuf(ArchiveHandle *AH, void *buf, size_t len)
|
||||
if (fread(buf, 1, len, AH->FH) != len)
|
||||
READ_ERROR_EXIT(AH->FH);
|
||||
ctx->filePos += len;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -945,7 +939,6 @@ _CustomWriteFunc(ArchiveHandle *AH, const char *buf, size_t len)
|
||||
WriteInt(AH, len);
|
||||
_WriteBuf(AH, buf, len);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user