Browse code

filters: cleanup & fmt

Docker-DCO-1.1-Signed-off-by: Vincent Batts <vbatts@redhat.com> (github: vbatts)

Vincent Batts authored on 2014/03/27 04:14:26
Showing 2 changed files
... ...
@@ -1168,24 +1168,8 @@ func (cli *DockerCli) CmdImages(args ...string) error {
1168 1168
 			return err
1169 1169
 		}
1170 1170
 	}
1171
-	/*
1172
-	  var (
1173
-	    untagged bool
1174
-	  )
1175
-	  for k,v := range imageFilters {
1176
-	  }
1177
-	*/
1178
-
1179
-	// seeing -all untagged images is redundant, and no point in seeing a visualization of that
1180
-	/*
1181
-		if *flUntagged && (*all || *flViz || *flTree) {
1182
-			fmt.Fprintln(cli.err, "Notice: --untagged is not to be used with --all, --tree or --viz")
1183
-			*flUntagged = false
1184
-		}
1185
-	*/
1186 1171
 
1187 1172
 	matchName := cmd.Arg(0)
1188
-
1189 1173
 	// FIXME: --viz and --tree are deprecated. Remove them in a future version.
1190 1174
 	if *flViz || *flTree {
1191 1175
 		v := url.Values{
... ...
@@ -22,9 +22,9 @@ func ParseFlag(arg string, prev map[string]string) (map[string]string, error) {
22 22
 	} else {
23 23
 		filters = map[string]string{}
24 24
 	}
25
-  if len(arg) == 0 {
26
-    return filters, nil
27
-  }
25
+	if len(arg) == 0 {
26
+		return filters, nil
27
+	}
28 28
 
29 29
 	for _, chunk := range strings.Split(arg, ";") {
30 30
 		if !strings.Contains(chunk, "=") {