Skip to content

Commit 77e4ec9

Browse files
committed
chore: change approach to define configuration file.
1 parent 0fb8fa6 commit 77e4ec9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/main.cpp

+1-7
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,7 @@ void handleClientRequest(int client_fd, const Location& location) {
3535

3636
int main(int argc, char* argv[])
3737
{
38-
std::string configuration_file;
39-
40-
if (argc < 2)
41-
configuration_file = DEFAULT_CONFIG_FILE;
42-
else
43-
configuration_file = argv[1];
44-
38+
std::string configuration_file = (argc == 1) ? DEFAULT_CONFIG_FILE : argv[1];
4539
CheckFile(configuration_file);
4640

4741
try

0 commit comments

Comments
 (0)