Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Commit 4a4409a

Browse files
committed
Address gofmt issues in GAS module
Signed-off-by: Madalina Lazar <[email protected]>
1 parent 848a1d2 commit 4a4409a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

gpu-aware-scheduling/pkg/gpuscheduler/node_resource_cache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const (
4343
expectedGpuSplitCount = 2
4444
)
4545

46-
//nolint: gochecknoglobals // only mocked APIs are allowed as globals
46+
//nolint:gochecknoglobals // only mocked APIs are allowed as globals
4747
var (
4848
internCacheAPI InternalCacheAPI
4949
)
@@ -55,7 +55,7 @@ var (
5555
errBadArgs = errors.New("bad args")
5656
)
5757

58-
//nolint: gochecknoinits // only mocked APIs are allowed in here
58+
//nolint:gochecknoinits // only mocked APIs are allowed in here
5959
func init() {
6060
internCacheAPI = &internalCacheAPI{}
6161
}

gpu-aware-scheduling/pkg/gpuscheduler/node_resource_cache_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func TestNewCache(t *testing.T) {
4949
})
5050
}
5151

52-
//nolint: gochecknoglobals // only test resource
52+
//nolint:gochecknoglobals // only test resource
5353
var dummyCache *Cache
5454

5555
func (c *Cache) reset() {

gpu-aware-scheduling/pkg/gpuscheduler/scheduler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const (
5353
base10 = 10
5454
)
5555

56-
// nolint: gochecknoglobals // only mocked APIs are allowed as globals
56+
//nolint:gochecknoglobals // only mocked APIs are allowed as globals
5757
var (
5858
iCache CacheAPI
5959
)
@@ -70,7 +70,7 @@ var (
7070
errResConflict = errors.New("resources conflict")
7171
)
7272

73-
// nolint: gochecknoinits // only mocked APIs are allowed in here
73+
//nolint:gochecknoinits // only mocked APIs are allowed in here
7474
func init() {
7575
iCache = &cacheAPI{}
7676
}

gpu-aware-scheduling/pkg/gpuscheduler/scheduler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func getDummyExtender(objects ...runtime.Object) *GASExtender {
3636
return NewGASExtender(clientset, true, true, "")
3737
}
3838

39-
//nolint: gochecknoglobals // only test resource
39+
//nolint:gochecknoglobals // only test resource
4040
var emptyExtender *GASExtender
4141

4242
func getEmptyExtender() *GASExtender {

0 commit comments

Comments
 (0)