Skip to content

Commit 66f0d44

Browse files
authored
Merge pull request google#290 from google/revert-289-gh-pages
Revert "cpplint: Fix --root for non-subdirectories"
2 parents 81ceafc + d420095 commit 66f0d44

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cpplint/cpplint.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,8 +1777,6 @@ def GetHeaderGuardCPPVariable(filename):
17771777
fileinfo = FileInfo(filename)
17781778
file_path_from_root = fileinfo.RepositoryName()
17791779
if _root:
1780-
file_path_from_root = fileinfo.FullName()
1781-
17821780
suffix = os.sep
17831781
# On Windows using directory separator will leave us with
17841782
# "bogus escape error" unless we properly escape regex.

0 commit comments

Comments
 (0)