Skip to content

Commit 6d19815

Browse files
committed
rest: replace rf_names[0].rf by RESTResponseFormat::UNDEF for code clarity
1 parent e3f416d commit 6d19815

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ RESTResponseFormat ParseDataFormat(std::string& param, const std::string& strReq
144144

145145
// No format string is found
146146
if (pos_format == std::string::npos) {
147-
return rf_names[0].rf;
147+
return RESTResponseFormat::UNDEF;
148148
}
149149

150150
// Match format string to available formats
@@ -157,7 +157,7 @@ RESTResponseFormat ParseDataFormat(std::string& param, const std::string& strReq
157157
}
158158

159159
// If no suffix is found, return RESTResponseFormat::UNDEF and original string without query string
160-
return rf_names[0].rf;
160+
return RESTResponseFormat::UNDEF;
161161
}
162162

163163
static std::string AvailableDataFormatsString()

0 commit comments

Comments
 (0)