We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e641a9 commit 4c21956Copy full SHA for 4c21956
1 file changed
files.go
@@ -52,10 +52,15 @@ func (f *FilePool) Add(fileName string, e encoding.Encoder) {
52
53
output := filepath.Join(append(f.path, fileName)...)
54
55
+ if f.m == nil {
56
+ f.m = make(map[string]string)
57
+ }
58
+
59
// Check whether we have already written something into this file.
60
if _, ok := f.m[output]; ok {
61
Panicf("filename clash: %s", output)
62
}
63
64
f.m[output] = string(b)
65
66
0 commit comments