Skip to content

Commit

Permalink
Code simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
markondej committed Jan 2, 2024
1 parent 78686ea commit ae7d02e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fm_transmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Transmitter *transmitter = nullptr;

void sigIntHandler(int sigNum)
{
if (transmitter != nullptr) {
if (transmitter) {
std::cout << "Stopping..." << std::endl;
transmitter->Stop();
enable = false;
Expand Down Expand Up @@ -110,7 +110,7 @@ int main(int argc, char** argv)
std::cout << "Error: " << catched.what() << std::endl;
result = EXIT_FAILURE;
}
if (transmitter != nullptr) {
if (transmitter) {
auto temp = transmitter;
transmitter = nullptr;
delete temp;
Expand Down

0 comments on commit ae7d02e

Please sign in to comment.