Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Mar 15, 2024
1 parent 5e28b24 commit 7b3828d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/FastaVector.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ enum FastaVectorReturnCode
fastaVectorReadFasta(const char *_RESTRICT_ const fileSrc,
struct FastaVector *fastaVector) {


FILE *fastaFile = fopen(fileSrc, "r");
if (__builtin_expect(!fastaFile, false)) {
return FASTA_VECTOR_FILE_OPEN_FAIL;
Expand Down Expand Up @@ -267,9 +266,8 @@ fastaVectorAddSequenceToList(struct FastaVector *fastaVector, char *header,

// return NULL for headerPtr and 0 for header length if the fastaVector does not
// have a header for the given headerIndex
void fastaVectorGetHeader(struct FastaVector *fastaVector,
size_t headerIndex, char **headerPtr,
size_t *headerLength) {
void fastaVectorGetHeader(struct FastaVector *fastaVector, size_t headerIndex,
char **headerPtr, size_t *headerLength) {
if (__builtin_expect(headerIndex >= fastaVector->metadata.count, false)) {
*headerLength = 0;
*headerPtr = NULL;
Expand All @@ -289,8 +287,8 @@ void fastaVectorGetHeader(struct FastaVector *fastaVector,
// return NULL for headerPtr and 0 for header length if the fastaVector does not
// have a header for the given headerIndex
void fastaVectorGetSequence(struct FastaVector *fastaVector,
size_t sequenceIndex, char **sequencePtr,
size_t *sequenceLength) {
size_t sequenceIndex, char **sequencePtr,
size_t *sequenceLength) {
if (__builtin_expect(sequenceIndex >= fastaVector->metadata.count, false)) {
*sequenceLength = 0;
*sequencePtr = NULL;
Expand Down

0 comments on commit 7b3828d

Please sign in to comment.