Skip to content

Commit 014269c

Browse files
committed
Small changes
1 parent ee1aaac commit 014269c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tools/msftidy.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def check_old_keywords
6363
max_count = 10
6464
counter = 0
6565
if @source =~ /^##/
66-
first_line = true
6766
@source.each_line do |line|
6867
# If exists, the $Id$ keyword should appear at the top of the code.
6968
# If not (within the first 10 lines), then we assume there's no
@@ -75,14 +74,11 @@ def check_old_keywords
7574
break
7675
end
7776

78-
return if !first_line and line =~ /^##/
79-
first_line = false
80-
8177
counter += 1
8278
end
8379
end
8480

85-
if @source =~ /'Version'[[:space:]]*=>[[:space:]]*['|"]\$Revision\$['|"]/
81+
if @source =~ /'Version'[[:space:]]*=>[[:space:]]*['"]\$Revision\$['"]/
8682
warn("Keyword $Revision$ is no longer needed.")
8783
end
8884
end

0 commit comments

Comments
 (0)