Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a641e1cb
Unverified
Commit
a641e1cb
authored
Sep 25, 2018
by
k8s-ci-robot
Committed by
GitHub
Sep 25, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #68729 from TinySong/fix-client-go-typos
remove duplicated words in heap.go and interfaces.go
parents
1b2298cb
dd4a8f9c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
interfaces.go
staging/src/k8s.io/client-go/scale/interfaces.go
+1
-1
heap.go
staging/src/k8s.io/client-go/tools/cache/heap.go
+1
-1
No files found.
staging/src/k8s.io/client-go/scale/interfaces.go
View file @
a641e1cb
...
@@ -34,6 +34,6 @@ type ScaleInterface interface {
...
@@ -34,6 +34,6 @@ type ScaleInterface interface {
// Get fetches the scale of the given scalable resource.
// Get fetches the scale of the given scalable resource.
Get
(
resource
schema
.
GroupResource
,
name
string
)
(
*
autoscalingapi
.
Scale
,
error
)
Get
(
resource
schema
.
GroupResource
,
name
string
)
(
*
autoscalingapi
.
Scale
,
error
)
// Update updates the scale of the
the
given scalable resource.
// Update updates the scale of the given scalable resource.
Update
(
resource
schema
.
GroupResource
,
scale
*
autoscalingapi
.
Scale
)
(
*
autoscalingapi
.
Scale
,
error
)
Update
(
resource
schema
.
GroupResource
,
scale
*
autoscalingapi
.
Scale
)
(
*
autoscalingapi
.
Scale
,
error
)
}
}
staging/src/k8s.io/client-go/tools/cache/heap.go
View file @
a641e1cb
...
@@ -204,7 +204,7 @@ func (h *Heap) AddIfNotPresent(obj interface{}) error {
...
@@ -204,7 +204,7 @@ func (h *Heap) AddIfNotPresent(obj interface{}) error {
return
nil
return
nil
}
}
// addIfNotPresentLocked assumes the lock is already held and adds the
the
provided
// addIfNotPresentLocked assumes the lock is already held and adds the provided
// item to the queue if it does not already exist.
// item to the queue if it does not already exist.
func
(
h
*
Heap
)
addIfNotPresentLocked
(
key
string
,
obj
interface
{})
{
func
(
h
*
Heap
)
addIfNotPresentLocked
(
key
string
,
obj
interface
{})
{
if
_
,
exists
:=
h
.
data
.
items
[
key
];
exists
{
if
_
,
exists
:=
h
.
data
.
items
[
key
];
exists
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment