]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
removes redundant first check flag; removes trailing whitespace
authorn0tlu5 <darfisultoni@gmail.com>
Sun, 22 Dec 2024 04:35:24 +0000 (11:35 +0700)
committern0tlu5 <darfisultoni@gmail.com>
Sun, 22 Dec 2024 04:35:24 +0000 (11:35 +0700)
pdns/lua-record.cc

index fc0314ece5cb6c544ad81e31a7b4b93b89ce4573..95148b3f40bca9ccb40e0d36f06ef8a5d8d5ad74 100644 (file)
@@ -232,14 +232,11 @@ private:
       state->first = false;
     }
   }
-  
+
   void setWeight(const CheckDesc& cd, int weight){
     auto statuses = d_statuses.write_lock();
     auto& state = (*statuses)[cd];
     state->weight = weight;
-    if (state->first) {
-      state->first = false;
-    }
   }
 
   void setDown(const ComboAddress& rem, const std::string& url=std::string(), const opts_t& opts = opts_t())