Skip to content

Commit 22ff8c2

Browse files
committed
Swift: remove redundant braces
1 parent 3e06455 commit 22ff8c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/extractor/infra/TargetFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ std::optional<TargetFile> TargetFile::create(std::string_view target,
6363
std::string_view targetDir,
6464
std::string_view workingDir) {
6565
TargetFile ret{target, targetDir, workingDir};
66-
if (ret.init()) return {std::move(ret)};
66+
if (ret.init()) return ret;
6767
return std::nullopt;
6868
}
6969

0 commit comments

Comments
 (0)