Skip to content

Commit 1c955ec

Browse files
committed
Avoid -Wunused-variable
1 parent 22536c7 commit 1c955ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vcpkg/tools.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ namespace vcpkg
537537
#endif // ^^^ !_WIN32
538538
cmd.string_arg(exe_path).string_arg("help").string_arg("-ForceEnglishOutput");
539539
auto maybe_output = run_to_extract_version(context, Tools::NUGET, exe_path, std::move(cmd));
540-
if (auto* output = maybe_output.get())
540+
if (maybe_output)
541541
{
542542
// Sample output:
543543
// NuGet Version: 4.6.2.5055

0 commit comments

Comments
 (0)