Minor refactoring for simplicity

This commit is contained in:
Strahinja Val Markovic 2013-04-26 22:32:22 -07:00
parent e41eda91ac
commit 209f2fd777

View File

@ -75,7 +75,6 @@ class Flags( object ):
for flag in flags:
if next_flag_is_include_path:
next_flag_is_include_path = False
if flag:
include_paths.append( flag )
for path_flag in path_flags:
@ -85,9 +84,8 @@ class Flags( object ):
if flag.startswith( path_flag ):
path = flag[ len( path_flag ): ]
if path:
include_paths.append( path )
return include_paths
return [ x for x in include_paths if x ]