[ 
https://issues.apache.org/jira/browse/YUNIKORN-2125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Akinyemi updated YUNIKORN-2125:
---------------------------------------
    Description: 
[https://github.com/apache/yunikorn-core/blob/master/pkg/webservice/handlers_test.go]

While going through the handler_test i noticed some of the functions use 
constant variables for the returned error messages (which exist within the 
webservice package), while others use literal strings. We should replace the 
literals that have constant values. 

  was:
https://github.com/apache/yunikorn-core/blob/master/pkg/webservice/handlers_test.go

While going through the handler_test i noticed some of the functions use 
constant variables for the returned error messages (which exist within the 
webservice package), while others use literal strings. We should remove the 
literals and replace them with the constants. 


> Remove literals from handlers_test.go  
> ---------------------------------------
>
>                 Key: YUNIKORN-2125
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2125
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: core - common
>            Reporter: Michael Akinyemi
>            Assignee: Michael Akinyemi
>            Priority: Minor
>
> [https://github.com/apache/yunikorn-core/blob/master/pkg/webservice/handlers_test.go]
> While going through the handler_test i noticed some of the functions use 
> constant variables for the returned error messages (which exist within the 
> webservice package), while others use literal strings. We should replace the 
> literals that have constant values. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to