projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ensure curly-braces around control-flow
[folly.git]
/
folly
/
Lazy.h
diff --git
a/folly/Lazy.h
b/folly/Lazy.h
index afab2faa830274cae31a31e866cdc7545955a455..a4fcfd359810be170a731aaa997039845d3b0af0 100644
(file)
--- a/
folly/Lazy.h
+++ b/
folly/Lazy.h
@@
-107,7
+107,9
@@
struct Lazy {
}
result_type& operator()() {
- if (!value_) value_ = func_();
+ if (!value_) {
+ value_ = func_();
+ }
return *value_;
}