refactor: remove unused variables

This commit is contained in:
椰子 2023-11-13 10:26:06 +08:00
parent 920a84c1fa
commit be48e09f67

View File

@ -55,8 +55,6 @@ fn get_token(namespace: &str, repository: &str) -> Option<String> {
let config = read_config();
match config {
Some(s) => {
// let username = "simaek";
// let password = "snow@PX1314";
let service = "registry.docker.io";
let scope = format!("repository:{namespace}/{repository}:pull");
let auth = format!("https://auth.docker.io/token?service={service}&scope={scope}");