*: reflow comments to 80 characters
This reformats the entire Metropolis codebase to have comments no longer
than 80 characters, implementing CR/66.
This has been done half manually, as we don't have a good integration
between commentwrap/Bazel, but that can be implemented if we decide to
go for this tool/limit.
Change-Id: If1fff0b093ef806f5dc00551c11506e8290379d0
diff --git a/intellij/localconfig/watchers/filewatchers.go b/intellij/localconfig/watchers/filewatchers.go
index f31a26a..dd1810c 100644
--- a/intellij/localconfig/watchers/filewatchers.go
+++ b/intellij/localconfig/watchers/filewatchers.go
@@ -86,7 +86,8 @@
return fmt.Errorf("failed to serialize: %w", err)
}
- // Atomic write is needed, IntelliJ has inotify watches on its config and reloads (but not applies) instantly.
+ // Atomic write is needed, IntelliJ has inotify watches on its config and reloads
+ // (but not applies) instantly.
tmpPath := filename + ".tmp"
defer os.Remove(tmpPath)
if err := ioutil.WriteFile(tmpPath, []byte(xml.Header+string(b)), 0664); err != nil {
@@ -99,7 +100,8 @@
return nil
}
-// RewriteConfig adds our watchers to projectDir's watchers config, overwriting existing entries with the same name.
+// RewriteConfig adds our watchers to projectDir's watchers config, overwriting
+// existing entries with the same name.
func RewriteConfig(projectDir string) error {
template, err := readConfig(path.Join(projectDir, templatePath))
if err != nil {