Skip to content

Commit 73d430d

Browse files
Fix linting (#173)
This is broken on all PRs
1 parent c24c69b commit 73d430d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/cache/cache.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ func New() *Cache {
4242
}
4343

4444
// Put adds or replaces a document in the cache.
45-
func (c *Cache) Put(new *Document) error {
45+
func (c *Cache) Put(doc *Document) error {
4646
c.mu.Lock()
4747
defer c.mu.Unlock()
4848

49-
uri := new.Item.URI
49+
uri := doc.Item.URI
5050
if old, ok := c.docs[uri]; ok {
51-
if old.Item.Version > new.Item.Version {
51+
if old.Item.Version > doc.Item.Version {
5252
return errors.New("newer version of the document is already in the cache")
5353
}
5454
}
55-
c.docs[uri] = new
55+
c.docs[uri] = doc
5656

5757
// Invalidate the TopLevelObject cache
5858
// We can't easily invalidate the cache for a single file (hard to figure out where the import actually leads),

0 commit comments

Comments
 (0)