Skip to content

Commit

Permalink
rewrite - more convert script changes (GoogleCloudPlatform#11799)
Browse files Browse the repository at this point in the history
  • Loading branch information
c2thorn authored and niharika-98 committed Oct 7, 2024
1 parent bbc63f4 commit 9b9bd2e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions mmv1/provider/file_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ class FileTemplate
# Once the file's contents are written, set the proper [chmod] mode and
# format the file with a language-appropriate formatter.
def generate(pwd, template, path, provider)
# If we've modified a file since starting an MM run, it's a reasonable
# assumption that it was this run that modified it.
if File.exist?(path) && File.mtime(path) > @env[:start_time]
raise "#{path} was already modified during this run.. check to see if " \
'there is both a .go and .go.erb version of this file'
end

# You're looking at some magic here!
# This is how variables are made available in templates; we iterate
# through each key:value pair in this object, and we set them
Expand Down

0 comments on commit 9b9bd2e

Please sign in to comment.