Commit a1c5e45d authored by eissajamil@gmail.com's avatar eissajamil@gmail.com

Removal of null check

Removed the redundant check for NULL which is already correctly handled
by used the delete
parent 88eda4d7
...@@ -107,7 +107,7 @@ class MockGeneratorContext : public GeneratorContext { ...@@ -107,7 +107,7 @@ class MockGeneratorContext : public GeneratorContext {
virtual io::ZeroCopyOutputStream* Open(const string& filename) { virtual io::ZeroCopyOutputStream* Open(const string& filename) {
string** map_slot = &files_[filename]; string** map_slot = &files_[filename];
if (*map_slot != NULL) delete *map_slot; delete *map_slot;
*map_slot = new string; *map_slot = new string;
return new io::StringOutputStream(*map_slot); return new io::StringOutputStream(*map_slot);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment