@@ -96,23 +96,15 @@ struct FileNode {
9696 using ByPath = bi::unordered_set_member_hook<LinkMode, bi::store_hash<true >>;
9797 ByPath by_path, by_original_path;
9898
99- const DataNode& GetTarget () const {
100- return link ? *link : data;
101- }
99+ const DataNode& GetTarget () const { return link ? *link : data; }
102100
103101 // Gets attributes.
104102 using Stat = struct stat ;
105- operator Stat () const {
106- return GetTarget ();
107- }
103+ operator Stat () const { return GetTarget (); }
108104
109- FileType GetType () const {
110- return GetFileType (GetTarget ().mode );
111- }
105+ FileType GetType () const { return GetFileType (GetTarget ().mode ); }
112106
113- bool IsDir () const {
114- return GetType () == FileType::Directory;
115- }
107+ bool IsDir () const { return GetType () == FileType::Directory; }
116108
117109 // Gets the full absolute path of this node.
118110 std::string GetPath () const {
@@ -192,9 +184,7 @@ struct FileNode {
192184 }
193185
194186 // Gets a Reader to read file contents.
195- Reader::Ptr GetReader () const {
196- return GetTarget ().GetReader (zip, *this );
197- }
187+ Reader::Ptr GetReader () const { return GetTarget ().GetReader (zip, *this ); }
198188
199189 // Output operator for debugging.
200190 friend std::ostream& operator <<(std::ostream& out, const FileNode& node) {
0 commit comments