Skip to content

Commit c8abdec

Browse files
committed
chore: Removed useless NOLINT tags
1 parent 08d1f28 commit c8abdec

3 files changed

Lines changed: 6 additions & 10 deletions

File tree

src/cache.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,7 @@ static long Data_read(Cache *cf, uint8_t *buf, off_t len, off_t offset)
450450
* - -1 when the data file does not exist
451451
* - otherwise, the number of bytes written.
452452
*/
453-
static long
454-
Data_write(Cache *cf, const uint8_t *buf, off_t len,
455-
off_t offset) // NOLINT(bugprone-easily-swappable-parameters)
453+
static long Data_write(Cache *cf, const uint8_t *buf, off_t len, off_t offset)
456454
{
457455
if (len == 0) {
458456
/*
@@ -959,8 +957,7 @@ static int Seg_exist(Cache *cf, off_t offset)
959957
* \param[in] i 1 for exist, 0 for doesn't exist
960958
* \note Call this after downloading a segment.
961959
*/
962-
static void Seg_set(Cache *cf, off_t offset,
963-
int i) // NOLINT(bugprone-easily-swappable-parameters)
960+
static void Seg_set(Cache *cf, off_t offset, int i)
964961
{
965962
off_t byte = offset / cf->blksz;
966963
cf->seg[byte] = i;

src/link.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,9 +1039,9 @@ TransferStruct Link_download_full(Link *link)
10391039
return ts;
10401040
}
10411041

1042-
static CURL *Link_download_curl_setup(
1043-
Link *link, size_t req_size, off_t offset, TransferStruct *header,
1044-
TransferStruct *ts) // NOLINT(bugprone-easily-swappable-parameters)
1042+
static CURL *Link_download_curl_setup(Link *link, size_t req_size, off_t offset,
1043+
TransferStruct *header,
1044+
TransferStruct *ts)
10451045
{
10461046
if (!link) {
10471047
lprintf(fatal, "Invalid supplied\n");

src/log.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ int log_level_init(void);
3333
* \details This is for printing nice log messages
3434
*/
3535
void log_printf(LogType type, const char *file, const char *func, int line,
36-
const char *format,
37-
...); // NOLINT(bugprone-easily-swappable-parameters)
36+
const char *format, ...);
3837

3938
/**
4039
* \brief Log type printf

0 commit comments

Comments
 (0)